openebs / monitoring

OpenEBS Monitoring add-on. A set of Grafana, Prometheus, and alert manager plugins.
Apache License 2.0
28 stars 20 forks source link

Added grafana plugins #17

Closed Ab-hishek closed 3 years ago

Ab-hishek commented 3 years ago

What does this PR do?

This PR adds some of the grafana plugins and also adds some Prometheus configuration relabeling for kube-state-metrics to collect all labels info from all the pods that it collects metrics from.

Grafana plugins that are added are:

How to achieve this - > We should to be able to filter out openebs specific pods to visualise in grafana. For that we can make use of kube_pod_labels metric coming from kube-state-metrics and do a join operation along with other metrics.

Screenshots for this PR are attached below:

  1. List pods with all their labels Screenshot from 2021-05-20 14-28-07

  2. List pods with specific labels only Screenshot from 2021-05-20 14-27-51

  3. New grafana plugin added Screenshot from 2021-05-20 13-45-27

Signed-off-by: Abhishek Agarwal abhishek.agarwal@mayadata.io