monitor

monitor

监控系统有 pull 和 push 两种模式:

pull 模式比较适合数据中心的场景

push 模式更适合 iot 的场景

1
2
❯ kubectl apply -f /home/cs/oss/k8s-1.26/helm-charts-main/charts/kube-prometheus-stack/charts/crds/crds/crd-podmonitors.yaml
customresourcedefinition.apiextensions.k8s.io/podmonitors.monitoring.coreos.com created

no matches for kind “PodMonitor” in version “monitoring.coreos.com/v1”

serviceAnnotations 添加供pull抓取

1
2
3
4
5
6
7
annotations:
meta.helm.sh/release-name: jenkins
meta.helm.sh/release-namespace: monitor
prometheus.io/path: /prometheus
prometheus.io/port: '8080'
prometheus.io/scheme: http
prometheus.io/scrape: 'true'
点击打赏
文章目录
  1. 1. monitor
  2. 2.
载入天数...载入时分秒... ,