Grafana offers the possibility to add custom panels.

Procedure

To add a custom panel, use the New dashboard view.

  1. In the first section, define Queries to. Use the Prometheus Query Language to construct a specific metric, as well as to modify it with various aggregation operators.

    monitoring che new grafana dashboard queries
    Figure 1. New Grafana dashboard: Queries to
  2. In the Visualisation section, choose a metric to be shown in the following visual in the form of a graph, gauge, heatmap, or others.

    monitoring che new grafana dashboard visualization
    Figure 2. New Grafana dashboard: Visualization
  3. Save changes to the dashboard by clicking the Save button, and copy and paste the JSON code to the deployment.

  4. Load changes in the configuration of a running Grafana deployment. First remove the deployment:

    $ oc process -f che-monitoring.yaml | oc delete -f -

    Then redeploy your Grafana with the new configuration:

    $ oc process -f che-monitoring.yaml | oc apply -f - | oc rollout latest grafana