Skip to content

Commit

Permalink
fix(prom): update prom-agent config
Browse files Browse the repository at this point in the history
  • Loading branch information
willianpaixao committed Nov 18, 2024
1 parent 7abc587 commit 8ba4435
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ spec:
- new-service-discovery-manager
- remote-write-receiver
enableRemoteWriteReceiver: true
externalLabels:
cluster: "raspberry"
retention: 30d
retentionSize: 64GiB
nodeSelector:
Expand All @@ -98,6 +96,26 @@ spec:
resources:
requests:
storage: 64Gi
kubeControllerManager:
enabled: false
kubeScheduler:
enabled: false
kubeEtcd:
enabled: false
kubeProxy:
enabled: false
kubeApiServer:
serviceMonitor:
relabelings:
- sourceLabels: [__address__]
targetLabel: cluster
replacement: raspberry
kubelet:
serviceMonitor:
relabelings:
- sourceLabels: [__address__]
targetLabel: cluster
replacement: raspberry
nodeExporter:
enabled: true
prometheus-node-exporter:
Expand All @@ -112,6 +130,10 @@ spec:
prometheus:
monitor:
enabled: true
relabelings:
- sourceLabels: [__address__]
targetLabel: cluster
replacement: raspberry
grafana:
enabled: true
defaultDashboardsTimezone: ${TIMEZONE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: &app prometheus-agent
namespace: &namespace observability
spec:
interval: 30m
interval: 1h
timeout: 15m
chart:
spec:
Expand Down Expand Up @@ -41,6 +41,8 @@ spec:
prometheus:
agentMode: true
prometheusSpec:
externalLabels:
cluster: "turing"
scrapeInterval: 30s
podMonitorSelectorNilUsesHelmValues: false
serviceMonitorSelectorNilUsesHelmValues: false
Expand Down

0 comments on commit 8ba4435

Please sign in to comment.