Repository navigation
mgr/dashboard: Grafana graphs integration with dashboard - #23666
Conversation
a81ed8e to
6283ff8
Compare
09c975f to
188400d
Compare
|
The embedding will have a Grafana dashboard added in the views under tab for following views:-
Cluster -> OSDs
Pools
Filesystem
Daemons
Flow:-
|
|
@a2batic Flow suggestion: It would be great to have a proper "alert" message if the grafana Port / Url is not defined or is unreachable, with a link to the "settings" page where user can set Grafana Port / Url properties. |
|
Does this PR have a dependency on a PR opening for the charts themselves (https://tracker.ceph.com/issues/24998)? |
Yes, this PR only becomes useful with the Grafana dashboards that are being prepared in that issue. However, the Ceph Manager Dashboard is fully functional without Grafana, this is an optional enhancement. |
5ebfa63 to
3055b35
Compare
epuertat
left a comment
There was a problem hiding this comment.
Mostly wondering if the component/class design for grafana-panel and details could be made simpler and reduce 2 components to a single one?
There was a problem hiding this comment.
Where do these UIDs come from? Could you add a comment explaining it?
There was a problem hiding this comment.
These Uids will be part of json's prepared for Grafana dashboard. They will be constants. Ack, will add a comment about it.
There was a problem hiding this comment.
As this component shares methods and code with grafana-details-panel.component, why not creating a base class and inheriting from it?
There was a problem hiding this comment.
Is it not possible to change this in the pool list component so that every component is identified by the same id? Other option would be to expose this variable, as well?
There was a problem hiding this comment.
It depends on what has been taken by Grafana dashboard JSON, we can update it when we have final JSON file. I used these on the basis of demo JSON provided.
There was a problem hiding this comment.
Instead of a component which auto-infers its internal status from a few input arguments (name and data), why not exposing the input arguments that characterize that class: name, style, grafana URL, etc? This way, the only purpose of this class is to present that grafana dashboard? By doing this, you avoid having 2 different components (the regular panel and the details one) that share 90% of the code, and also adding new grafana panels for, let's say, iSCSI, would not require modifying the internal code of the component, but just a new instantiation with different input args:
<cd-grafana-panel
name='cephfsDetails'
[data]="selection.first()"
grafana_path='/rRfFzWtik/mds-performance?var-mds_servers=${id}'
[grafana_style]="GrafanaStyles.ONE"
[autoReload]="false">There was a problem hiding this comment.
Ack, will give it a try.
There was a problem hiding this comment.
Just to ensure this is not a typo, is this intentionally called twice?
There was a problem hiding this comment.
Its a typo, ack, will remove it.
There was a problem hiding this comment.
This template is exactly the same as the other grafana HTML. Could this suggest that you may re-use some code or join components?
There was a problem hiding this comment.
Ack, will give it a try.
There was a problem hiding this comment.
Why not importing all these variables in a single line?
import { DashboardVar, GrafanaDashboardName, GrafanaPanelsRow, GrafanaPanelsUid, GrafanaUrl, GrafanaVar} from '../../../enum/grafana-template.enum';Or given you have imported everything, why not import *?
6de5024 to
60fe21f
Compare
7eeb06b to
fc571f3
Compare
3f49c5a to
81ffe2b
Compare
Fixes: https://tracker.ceph.com/issues/24999 Signed-off-by: Kanika Murarka <[email protected]>
fb0b2ef to
336c92b
Compare
Fixes: https://tracker.ceph.com/issues/24999 Signed-off-by: Kanika Murarka <[email protected]>
|
jenkins retest this please |
ricardoasmarques
left a comment
There was a problem hiding this comment.
Documentation URL should be generated dynamically.
| </cd-loading-panel> | ||
| <cd-info-panel *ngIf="!grafanaExist"> | ||
| <ng-container i18n> | ||
| Please consult the <a href="http://docs.ceph.com/docs/luminous/mgr/dashboard/" target="_blank">documentation</a> on how to configure and enable the monitoring functionality. |
There was a problem hiding this comment.
This URL should be generated dynamically like we are doing here.
b1f4bd8 to
f97e2cd
Compare
|
jenkins retest this please |
f97e2cd to
ad17e73
Compare


This PR adds Grafana Graphs to Dashboard. Views affected:-
CLI commands to see graphs from Grafana
Tracker: https://tracker.ceph.com/issues/24999
Signed-off-by: Kanika [email protected]