19418 / 105795692
Prometheus : Visualize on Grafana2021/06/03
Web UI is included in Prometheus but it's also possible to visualize time series data on Grafana.
Install Grafana, refer to here.
It's OK to install it on any Node. (install it on Prometheus server Node on this example)
|||Install [grafana-prometheus] on Grafana installed Node.
(generally it has been installed yet by dependency with Grafana)
dnf -y install grafana-prometheus
|||Access to Grafana Dashboard and Open [Configuration] - [Data Sources] on the left menu.|
|||Click [Add data source].|
|||Input Prometheus Server endpoint URL on [URL] field and Click [Save & Test] button which is bottom of the page.|
|||The message [Data source is working] is shown if that's OK.|
|||Next, Open [Create] - [Dashboard] on the left menu.|
|||Click [Add an empty panel].|
|||Select a query you'd like to visualize data on [Metrics] field.|
|||After selecting a query, visualized graph is shown. To save [Dashboard], Click [Save] button.|
|||Set any Dashboard name and Click [Save] button.|
|||To add more queries, it's possible to put more Graphs on a Dashboard.|