<a ngbNavLink
i18n>Performance</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="rbdDashboardUrl"
+ <cd-grafana i18n-title
+ title="RBD details"
+ [grafanaPath]="rbdDashboardUrl"
[type]="'metrics'"
uid="YhCYGcuZz"
grafanaStyle="one">
<cd-rbd-tabs></cd-rbd-tabs>
-<cd-grafana [grafanaPath]="'rbd-overview?'"
+<cd-grafana i18n-title
+ title="RBD overview"
+ [grafanaPath]="'rbd-overview?'"
[type]="'metrics'"
uid="41FrpeUiz"
grafanaStyle="two">
<a ngbNavLink
i18n>Performance Details</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'mds-performance?var-mds_servers=mds.' + grafanaId"
+ <cd-grafana i18n-title
+ title="CephFS MDS performance"
+ [grafanaPath]="'mds-performance?var-mds_servers=mds.' + grafanaId"
[type]="'metrics'"
uid="tbO9LAiZz"
grafanaStyle="one">
<a ngbNavLink
i18n>Performance Details</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'host-details?var-ceph_hosts=' + selectedHostname"
+ <cd-grafana i18n-title
+ title="Host details"
+ [grafanaPath]="'host-details?var-ceph_hosts=' + selectedHostname"
[type]="'metrics'"
uid="rtOg0AiWz"
grafanaStyle="four">
<a ngbNavLink
i18n>Overall Performance</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'host-overview?'"
+ <cd-grafana i18n-title
+ title="Host overview"
+ [grafanaPath]="'host-overview?'"
[type]="'metrics'"
uid="y0KGL0iZz"
grafanaStyle="two">
<ng-template ngbNavContent>
<ng-container *ngIf="lokiServiceStatus$ | async as lokiServiceStatus; else daemonLogsTpl">
<div *ngIf="promtailServiceStatus$ | async as promtailServiceStatus; else daemonLogsTpl">
- <cd-grafana [grafanaPath]="'explore?'"
+ <cd-grafana i18n-title
+ title="Daemon logs"
+ [grafanaPath]="'explore?'"
[type]="'logs'"
uid="CrAHE0iZz"
grafanaStyle="two">
<a ngbNavLink
i18n>Performance Details</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'osd-device-details?var-osd=osd.' + osd['id']"
+ <cd-grafana i18n-title
+ title="OSD details"
+ [grafanaPath]="'osd-device-details?var-osd=osd.' + osd['id']"
[type]="'metrics'"
uid="CrAHE0iZz"
grafanaStyle="three">
<a ngbNavLink
i18n>Overall Performance</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'osd-overview?'"
+ <cd-grafana i18n-title
+ title="OSD list"
+ [grafanaPath]="'osd-overview?'"
[type]="'metrics'"
uid="lo02I1Aiz"
grafanaStyle="four">
<a ngbNavLink
i18n>Performance Details</a>
<ng-template ngbNavContent>
- <cd-grafana grafanaPath="ceph-pool-detail?var-pool_name={{selection.pool_name}}"
+ <cd-grafana i18n-title
+ title="Pool details"
+ grafanaPath="ceph-pool-detail?var-pool_name={{selection.pool_name}}"
[type]="'metrics'"
uid="-xyV8KCiz"
grafanaStyle="three">
<a ngbNavLink
i18n>Overall Performance</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'ceph-pools-overview?'"
+ <cd-grafana i18n-title
+ title="Ceph pools overview"
+ [grafanaPath]="'ceph-pools-overview?'"
[type]="'metrics'"
uid="z99hzWtmk"
grafanaStyle="two">
<a ngbNavLink
i18n>Performance Details</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'rgw-instance-detail?var-rgw_servers=rgw.' + this.serviceId"
+ <cd-grafana i18n-title
+ title="RGW instance details"
+ [grafanaPath]="'rgw-instance-detail?var-rgw_servers=rgw.' + this.serviceId"
[type]="'metrics'"
uid="x5ARzZtmk"
grafanaStyle="one">
<a ngbNavLink
i18n>Overall Performance</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'rgw-overview?'"
+ <cd-grafana i18n-title
+ title="RGW overview"
+ [grafanaPath]="'rgw-overview?'"
[type]="'metrics'"
uid="WAkugZpiz"
grafanaStyle="two">
<a ngbNavLink
i18n>Sync Performance</a>
<ng-template ngbNavContent>
- <cd-grafana [grafanaPath]="'radosgw-sync-overview?'"
+ <cd-grafana i18n-title
+ title="Radosgw sync overview"
+ [grafanaPath]="'radosgw-sync-overview?'"
[type]="'metrics'"
uid="rgw-sync-overview"
grafanaStyle="two">
class="grafana"
[ngClass]="panelStyle"
frameborder="0"
- scrolling="no">
+ scrolling="no"
+ [title]="title"
+ i18n-title>
</iframe>
</div>
</div>
component.grafanaPath = 'somePath';
component.type = 'metrics';
component.uid = 'foo';
+ component.title = 'panel title';
});
it('should create', () => {
grafanaStyle: string;
@Input()
uid: string;
+ @Input()
+ title: string;
constructor(private sanitizer: DomSanitizer, private settingsService: SettingsService) {
this.grafanaTimes = [