Search
⌃K
Links

Grafana

How to configure a Grafana dashboard to visualize Memphis metrics

Introduction

As Grafana is one of the most popular tools for centralized monitoring, Memphis provides a Prometheus exporter to enable Grafana users to monitor Memphis.

Prerequisites

  • K8S-based Memphis
  • Memphis Prometheus exporter
  • Configured Prometheus
  • Grafana with prometheus configured as a data source

Getting started

Step 0: Configuring Prometheus to collect pods' logs

Validate that Prometheus.yml configfile contains "kubernetes-pods" job. Its mandatory to scrape Memphis exporter metrics automatically.
...
honor_labels: true
job_name: kubernetes-pods
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: keep
regex: true
source_labels:
- __meta_kubernetes_pod_annotation_prometheus_io_scrape
...

Step 1: Enabling Memphis Prometheus exporter

If you haven't installed Memphis with the exporter.enabled yet
helm install memphis memphis \
--create-namespace --namespace memphis --wait \
--set \
cluster.enabled="true",\
exporter.enabled="true"
If Memphis is already installed -
helm upgrade --set exporter.enabled=true memphis --namespace memphis --reuse-values

Step 2: Import Memphis dashboard

Import Memphis dashboard using Memphis dashboard ID: 18050 https://grafana.com/grafana/dashboards/18050-memphis/