Grafana is unreachable

If a Grafana instance installed with OSM can’t be reached, perform the following steps to identify and resolve any issues.

  1. Verify a Grafana Pod exists.

    When installed with osm install --set=osm.deployGrafana=true, a Grafana Pod named something like osm-grafana-7c88b9687d-tlzld should exist in the namespace of the other OSM control plane components which named osm-system by default.

    If no such Pod is found, verify the OSM Helm chart was installed with the osm.deployGrafana parameter set to true with helm:

    1. $ helm get values -a <mesh name> -n <OSM namespace>

    If the parameter is set to anything but true, reinstall OSM with the --set=osm.deployGrafana=true flag on osm install.

  2. 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 kubectl get output:

    1. $ # Assuming OSM is installed in the osm-system namespace:
    2. $ kubectl get pods -n osm-system -l app=osm-grafana
    3. NAME READY STATUS RESTARTS AGE
    4. osm-grafana-7c88b9687d-tlzld 1/1 Running 0 58s

    If the Pod is not showing as Running or its containers ready, use kubectl describe to look for other potential issues:

    1. $ # Assuming OSM is installed in the osm-system namespace:
    2. $ 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.

  1. 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.

  2. Verify Grafana can communicate with Prometheus.

    Start by opening the Grafana UI in a browser:

    1. $ osm dashboard
    2. [+] Starting Dashboard forwarding
    3. [+] 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:

    Successful verification

    More details about configuring data sources can be found in Grafana’s docs.

For other possible issues, see Grafana’s troubleshooting documentation.