Grafana is unreachable
If a Grafana instance installed with OSM can’t be reached, perform the following steps to identify and resolve any issues.
Verify a Grafana Pod exists.
When installed with
osm install --deploy-grafana, a Grafana Pod named something like
osm-grafana-7c88b9687d-tlzldshould exist in the namespace of the other OSM control plane components which named
If no such Pod is found, verify the OSM Helm chart was installed with the
OpenServiceMesh.deployGrafanaparameter set to
$ helm get values -a <mesh name> -n <OSM namespace>
If the parameter is set to anything but
true, reinstall OSM with the
Verify the Grafana Pod is healthy.
The Grafana Pod identified above should be both in a Running state and have all containers ready, as shown in the
$ # Assuming OSM is installed in the osm-system namespace: $ kubectl get pods -n osm-system -l app=osm-grafana NAME READY STATUS RESTARTS AGE osm-grafana-7c88b9687d-tlzld 1/1 Running 0 58s
If the Pod is not showing as Running or its containers ready, use
kubectl describeto look for other potential issues:
$ # Assuming OSM is installed in the osm-system namespace: $ kubectl describe pods -n osm-system -l app=osm-grafana
Once the Grafana Pod is found to be healthy, Grafana should be reachable.
Dashboards show no data in Grafana
If data appears to be missing from the Grafana dashboards, perform the following steps to identify and resolve any issues.
Verify Prometheus is installed and healthy.
Because Grafana queries Prometheus for data, ensure Prometheus is working as expected. See the Prometheus troubleshooting guide for more details.
Verify Grafana can communicate with Prometheus.
Start by opening the Grafana UI in a browser:
$ osm dashboard [+] Starting Dashboard forwarding [+] Issuing open browser http://localhost:3000
Login (default username/password is admin/admin) and navigate to the data source settings. For each data source that may not be working, click it to see its configuration. At the bottom of the page is a “Save & Test” button that will verify the settings.
If an error occurs, verify the Grafana configuration to ensure it is correctly pointing to the intended Prometheus instance. Make changes in the Grafana settings as necessary until the “Save & Test” check shows no errors:
More details about configuring data sources can be found in Grafana’s docs.
For other possible issues, see Grafana’s troubleshooting documentation.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.