๐ก Prometheus ServiceMonitor (smon.yaml) โ Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for Prometheus ServiceMonitor (smon.yaml).
bash
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: jaeger-operator
namespace: istio-system
labels:
prometheus: kube-prometheus-stack-prometheus
spec:
endpoints:
- honorLabels: false
path: /metrics
port: metrics
namespaceSelector:
matchNames:
- istio-system
selector:
matchLabels:
app.kubernetes.io/name: jaeger-operator
Prometheus โ Monitor resource that enables service target registration
Prometheus information provided
- If
.metadata.namespaceis specified as Prometheus switch - If
.metadata.labels.*is equal to.spec.serviceMonitorSelector.matchLabelsin the kubernetes Prometheus CRD resource
Provide service information
.spec.selector.matchLabels




Leave a Reply