Monitoring with Prometheus and Grafana
For application monitoring, the Spotfire Helm charts are validated with Prometheus ⧉ and Grafana ⧉.
This page provides an overview of the steps to get Spotfire application metrics in Prometheus and visualize them with Grafana.
Note: This a quick start guide. For more information, see the official documentation of each vendor.
Prerequisites
- You have deployed Spotfire using the provided Spotfire Helm charts.
Components
Prometheus
Installing
-
Add the Prometheus Community Helm charts ⧉ repo:
-
Install Prometheus:
-
Set up port-forwarding to access the Prometheus server pod:
For more information, see the Prometheus Community Helm charts documentation ⧉ and the Prometheus documentation ⧉.
Grafana
Installing
-
Add the Grafana Helm chart ⧉ repo:
-
Install Grafana:
-
After Grafana is deployed, get the Grafana UI
admin
user password: -
Set port-forwarding to access the Grafana pod:
-
Log in to the Grafana web interface http://localhost:3000 with the user
admin
and the password from the previous step.
For more information, see the Grafana Helm chart documentation ⧉ and the Grafana documentation ⧉.
Configuring
- Add a metrics datasource ⧉ pointing to your Prometheus server. For example, set the Prometheus Data Source HTTP URL to "http://prometheus-server.monitor.svc.cluster.local:80" (the address to access the Prometheus server within your cluster that was shown when you deployed the Prometheus Helm chart) and select "Save & test".
- Import a dashboard ⧉ using a previously exported dashboard as a JSON file, or by dashboard ID.
- Start exploring with the Spotfire Platform dashboard example.
- Try out other community Grafana dashboards ⧉.