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 19, 2024
1 parent 7abc587 commit 9ed54bb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 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 All @@ -17,9 +17,11 @@ spec:
name: prometheus-community-charts
namespace: flux-system
install:
crds: Create
remediation:
retries: 3
upgrade:
crds: CreateReplace
cleanupOnFail: true
remediation:
strategy: rollback
Expand All @@ -30,8 +32,6 @@ spec:
enabled: false
grafana:
enabled: false
kubeApiServer:
enabled: false
kubeEtcd:
enabled: false
kubeScheduler:
Expand All @@ -41,8 +41,12 @@ spec:
prometheus:
agentMode: true
prometheusSpec:
externalLabels:
cluster: "turing"
scrapeInterval: 30s
evaluationInterval: 30s
podMonitorSelectorNilUsesHelmValues: false
scrapeConfigSelectorNilUsesHelmValues: false
serviceMonitorSelectorNilUsesHelmValues: false
remoteWrite:
- url: 'http://192.168.0.35:9090/api/v1/write'

0 comments on commit 9ed54bb

Please sign in to comment.