mirror of
https://github.com/nold360/hive-apps
synced 2025-01-03 12:11:16 +00:00
fix(kube-prometheus): disabled selfmonitoring/service monitors
This commit is contained in:
parent
f00ba11663
commit
91437fa000
1 changed files with 10 additions and 8 deletions
|
@ -243,7 +243,7 @@ kubeApiServer:
|
||||||
## Component scraping the kubelet and kubelet-hosted cAdvisor
|
## Component scraping the kubelet and kubelet-hosted cAdvisor
|
||||||
##
|
##
|
||||||
kubelet:
|
kubelet:
|
||||||
enabled: true
|
enabled: false
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
|
@ -368,7 +368,7 @@ kubeControllerManager:
|
||||||
# component: kube-controller-manager
|
# component: kube-controller-manager
|
||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: false
|
||||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||||
##
|
##
|
||||||
interval: ""
|
interval: ""
|
||||||
|
@ -411,7 +411,7 @@ kubeControllerManager:
|
||||||
## Component scraping coreDns. Use either this or kubeDns
|
## Component scraping coreDns. Use either this or kubeDns
|
||||||
##
|
##
|
||||||
coreDns:
|
coreDns:
|
||||||
enabled: true
|
enabled: false
|
||||||
service:
|
service:
|
||||||
port: 9153
|
port: 9153
|
||||||
targetPort: 9153
|
targetPort: 9153
|
||||||
|
@ -538,7 +538,7 @@ kubeEtcd:
|
||||||
## keyFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
|
## keyFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key
|
||||||
##
|
##
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: false
|
||||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||||
##
|
##
|
||||||
interval: ""
|
interval: ""
|
||||||
|
@ -597,7 +597,7 @@ kubeScheduler:
|
||||||
# component: kube-scheduler
|
# component: kube-scheduler
|
||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: false
|
||||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||||
##
|
##
|
||||||
interval: ""
|
interval: ""
|
||||||
|
@ -656,7 +656,7 @@ kubeProxy:
|
||||||
# k8s-app: kube-proxy
|
# k8s-app: kube-proxy
|
||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: false
|
||||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||||
##
|
##
|
||||||
interval: ""
|
interval: ""
|
||||||
|
@ -943,7 +943,7 @@ prometheus:
|
||||||
# ServiceMonitor to scrape Sidecar metrics
|
# ServiceMonitor to scrape Sidecar metrics
|
||||||
# Needs thanosService to be enabled as well
|
# Needs thanosService to be enabled as well
|
||||||
thanosServiceMonitor:
|
thanosServiceMonitor:
|
||||||
enabled: true
|
enabled: false
|
||||||
interval: ""
|
interval: ""
|
||||||
|
|
||||||
## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
|
## scheme: HTTP scheme to use for scraping. Can be used with `tlsConfig` for example if using istio mTLS.
|
||||||
|
@ -1263,7 +1263,7 @@ prometheus:
|
||||||
## Defaults to 30s.
|
## Defaults to 30s.
|
||||||
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183
|
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/release-0.44/pkg/prometheus/promcfg.go#L180-L183
|
||||||
##
|
##
|
||||||
scrapeInterval: ""
|
scrapeInterval: "60s"
|
||||||
|
|
||||||
## Number of seconds to wait for target to respond before erroring
|
## Number of seconds to wait for target to respond before erroring
|
||||||
##
|
##
|
||||||
|
@ -1623,6 +1623,7 @@ prometheus:
|
||||||
- targets: ['192.168.1.2:9100']
|
- targets: ['192.168.1.2:9100']
|
||||||
|
|
||||||
- job_name: 'kubernetes-services'
|
- job_name: 'kubernetes-services'
|
||||||
|
scrape_interval: 120s
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: service
|
- role: service
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
|
@ -1648,6 +1649,7 @@ prometheus:
|
||||||
target_label: kubernetes_service_name
|
target_label: kubernetes_service_name
|
||||||
|
|
||||||
- job_name: 'kubernetes-pods'
|
- job_name: 'kubernetes-pods'
|
||||||
|
scrape_interval: 120s
|
||||||
kubernetes_sd_configs:
|
kubernetes_sd_configs:
|
||||||
- role: pod
|
- role: pod
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
|
|
Loading…
Reference in a new issue