browbeat/ansible/install/roles/collectd-rhoso/files/collectd_svc_monitor.yaml
rajeshP524 2b8b193a7a Move away from graphite to Prometheus
The current patch uses collectd write_promethus plugin to expose metrics
collected by collectd at /metrics endpoint. And Openshift's Prometheus consumes
them via service monitor.

Change-Id: I65651f5706d4563f8c6aa7e8f7db18d41eea3d95
2024-09-03 16:48:55 +05:30

19 lines
349 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: ospcp-collectd-monitor
namespace: openshift-monitoring
spec:
endpoints:
- honorLabels: true
interval: 30s
path: /metrics
port: http
scheme: http
namespaceSelector:
matchNames:
- ospperf
selector:
matchLabels:
app: ospcp-collectd