Add Prometheus monitoring examples

This commit is contained in:
Joshua Boniface 2023-12-09 17:42:51 -05:00
parent e8552b471b
commit 1f6347d24b
4 changed files with 2624 additions and 0 deletions

View File

@ -2,6 +2,14 @@
This directory contains several monitoring resources that can be used with various monitoring systems to track and alert on a PVC cluster system.
## Prometheus + Grafana
The included example Prometheus configuration and Grafana dashboard can be used to query the PVC API for Prometheus data and display it with a consistent dashboard.
Note that the default configuration here also includes Ceph cluster information; a Ceph dashboard can be found externally.
Note too that this does not include node export examples from individual PVC nodes; those must be set up separately.
## Munin
The included Munin plugins can be activated by linking to them from `/etc/munin/plugins/`. Two plugins are provided:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
# Other configuration omitted
scrape_configs:
- job_name: "pvc_cluster"
metrics_path: /api/v1/metrics
scheme: "http"
file_sd_configs:
- files:
- 'targets-pvc_cluster.json'

View File

@ -0,0 +1,11 @@
[
{
"targets": [
"pvc.upstream.floating.address.tld:7370"
],
"labels": {
"cluster": "cluster1"
}
}
]