Skip to content

Commit

Permalink
[monitoring] renabled manager watchers on kube-prom
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Dec 31, 2023
1 parent ad611d3 commit 081f03b
Showing 1 changed file with 64 additions and 12 deletions.
76 changes: 64 additions & 12 deletions apps/monitoring/kube-prometheus/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,43 @@ spec:
pspEnabled: false
windowsMonitoring:
enabled: false
kubeScheduler:
enabled: true
endpoints:
- 192.168.1.2
- 192.168.1.10
service:
enabled: true
port: 10259
targetPort: 10259
serviceMonitor:
enabled: true
https: true
insecureSkipVerify: true
kubeControllerManager:
enabled: true
endpoints:
- 192.168.1.2
- 192.168.1.10
service:
enabled: true
port: 10257
targetPort: 10257
serviceMonitor:
enabled: true
https: true
insecureSkipVerify: true
kubeEtcd:
enabled: true
endpoints:
- 192.168.1.2
- 192.168.1.10
service:
enabled: true
port: 2381
targetPort: 2381
serviceMonitor:
enabled: true
prometheus-windows-exporter:
prometheus:
monitor:
Expand Down Expand Up @@ -339,6 +376,8 @@ spec:
enabled: true
kubeApiServer:
enabled: false
nodeExporter:
enabled: true
kubelet:
enabled: true
namespace: kube-system
Expand Down Expand Up @@ -375,25 +414,38 @@ spec:
darwin:
enabled: true
prometheus-node-exporter:
fullnameOverride: node-exporter
extraArgs:
- >-
--collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)
- >-
--collector.filesystem.fs-types-exclude=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$
podLabels:
jobLabel: node-exporter
rbac:
pspEnabled: false
releaseLabel: true
service:
portName: http-metrics
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var)($|/)
- --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs|tmpfs)$
prometheus:
monitor:
enabled: true
# lens ide config
relabelings:
- action: replace
regex: (.*)
replacement: $1
sourceLabels: [__meta_kubernetes_pod_node_name]
targetLabel: kubernetes_node
# should be removed when https://github.com/lensapp/lens/issues/4851 is fixed
- sourceLabels: [__meta_kubernetes_namespace]
action: replace
regex: (.*)
replacement: $1
targetLabel: kubernetes_namespace
- sourceLabels: [__meta_kubernetes_service_name]
action: replace
regex: (.*)
replacement: $1
targetLabel: kubernetes_name
prometheusOperator:
tlsProxy:
enabled: false
tls:
enabled: false
admissionWebhooks:
failurePolicy: ''
enabled: false
containerSecurityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
Expand Down

0 comments on commit 081f03b

Please sign in to comment.