]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/monitoring-list/monitoring-list.component.ts
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / prometheus / monitoring-list / monitoring-list.component.ts
index 5e96d126fdda2bd7bccbf8fd50ab9cb0ba9f7b0a..9b549aca8426f0e4dbc1179285f7b07fcf01a914 100644 (file)
@@ -4,9 +4,7 @@ import { ActivatedRoute, Router } from '@angular/router';
 import { TabDirective, TabsetComponent } from 'ngx-bootstrap/tabs';
 
 import { PrometheusService } from '../../../../shared/api/prometheus.service';
-import { CephReleaseNamePipe } from '../../../../shared/pipes/ceph-release-name.pipe';
 import { PrometheusAlertService } from '../../../../shared/services/prometheus-alert.service';
-import { SummaryService } from '../../../../shared/services/summary.service';
 
 @Component({
   selector: 'cd-monitoring-list',
@@ -18,9 +16,7 @@ export class MonitoringListComponent implements OnInit {
     public prometheusAlertService: PrometheusAlertService,
     private prometheusService: PrometheusService,
     private route: ActivatedRoute,
-    private router: Router,
-    private summaryService: SummaryService,
-    private cephReleaseNamePipe: CephReleaseNamePipe
+    private router: Router
   ) {}
   @ViewChild('tabs', { static: true })
   tabs: TabsetComponent;
@@ -28,8 +24,6 @@ export class MonitoringListComponent implements OnInit {
   isPrometheusConfigured = false;
   isAlertmanagerConfigured = false;
 
-  docsUrl = '';
-
   ngOnInit() {
     this.prometheusService.ifAlertmanagerConfigured(() => {
       this.isAlertmanagerConfigured = true;
@@ -38,19 +32,6 @@ export class MonitoringListComponent implements OnInit {
       this.isPrometheusConfigured = true;
     });
 
-    const subs = this.summaryService.subscribe((summary: any) => {
-      if (!summary) {
-        return;
-      }
-
-      const releaseName = this.cephReleaseNamePipe.transform(summary.version);
-      this.docsUrl = `https://docs.ceph.com/docs/${releaseName}/mgr/dashboard/#enabling-prometheus-alerting`;
-
-      setTimeout(() => {
-        subs.unsubscribe();
-      }, 0);
-    });
-
     // Activate tab according to given fragment
     if (this.route.snapshot.fragment) {
       const tab = this.tabs.tabs.find(