Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 1.72 KB

06-prometheus-grafana.md

File metadata and controls

45 lines (27 loc) · 1.72 KB

Main menu

Prometheus

OpenShift

OpenShift provides an embedded prometheus server. However, version < 4.3 de not provide the availability to monitor custom services. You can follow the links for official OpenShift documentation:

MCM

With IBM Cloud Pak MCM, prometheus+grafana is embeded. You can access the Grafana server through the MCM WEB UI.

Configuration

First thing you want to set is Prometheus retention of information. First check retention time with following command :

[root@workstation ~ ]$ oc get prometheus monitoring-prometheus -n kube-system -o yaml | grep retention
  retention: 24h

By default it's 24h but you can extend to 7 days for example (168h) by editing this file.

Grafana

Grafana provides a custom dashboard for velero (ID 11055):

https://grafana.com/grafana/dashboards/11055

You can directly load this dashboard to start monitoring velero.

I provided an enhanced Grafana dashboard with additional informations about velero-pvc-watcher addon here [Grafana enhanced dashboard JSON](../resources/velero/grafana/Kubernetes _ Addons _ Velero Stats-1591178070559.json) This dashboard displays the number of missing PVC annotations and also which namespace ans which resources.


Main menu

Next