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 ad0a664
Show file tree
Hide file tree
Showing 2 changed files with 36 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,12 @@ spec:
prometheus:
monitor:
enabled: true
relabelings:
- sourceLabels: [__address__]
targetLabel: cluster
replacement: raspberry
- source_labels: [__metrics_path__]
target_label: metrics_path
grafana:
enabled: true
defaultDashboardsTimezone: ${TIMEZONE}
Expand All @@ -127,6 +151,13 @@ spec:
tls:
- hosts:
- *host
sidecar:
dashboards:
multicluster:
global:
enabled: true
etcd:
enabled: true
persistence:
enabled: true
storageClassName: longhorn
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 ad0a664

Please sign in to comment.