
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
19 lines
349 B
YAML
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
|