diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html new file mode 100644 index 000000000..278bc4ddc --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.html @@ -0,0 +1,41 @@ +<cd-prometheus-tabs></cd-prometheus-tabs> + +<cd-alert-panel *ngIf="!isAlertmanagerConfigured" + type="info" + i18n>To see all active Prometheus alerts, please provide + the URL to the API of Prometheus' Alertmanager as described + in the <cd-doc section="prometheus"></cd-doc>.</cd-alert-panel> + +<cd-table *ngIf="isAlertmanagerConfigured" + [data]="prometheusAlertService.alerts" + [columns]="columns" + identifier="fingerprint" + [forceIdentifier]="true" + [customCss]="customCss" + selectionType="single" + [hasDetails]="true" + (setExpandedRow)="setExpandedRow($event)" + (updateSelection)="updateSelection($event)"> + <cd-table-actions class="table-actions" + [permission]="permission" + [selection]="selection" + [tableActions]="tableActions"> + </cd-table-actions> + + <cd-table-key-value cdTableDetail + *ngIf="expandedRow" + [renderObjects]="true" + [hideEmpty]="true" + [appendParentKey]="false" + [data]="expandedRow" + [customCss]="customCss" + [autoReload]="false"> + </cd-table-key-value> +</cd-table> + +<ng-template #externalLinkTpl + let-row="row" + let-value="value"> + <a [href]="value" + target="_blank"><i [ngClass]="[icons.lineChart]"></i> Source</a> +</ng-template> |