Prometheus ServiceMonitor (smon.yaml)

๐Ÿ’ก 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
  1. If .metadata.namespace is specified as Prometheus switch
  2. If .metadata.labels.* is equal to .spec.serviceMonitorSelector.matchLabels in the kubernetes Prometheus CRD resource
Provide service information
  • .spec.selector.matchLabels

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *