Skip to content

Commit

Permalink
fix(metrics): remove unnecessary Prometheus ServiceMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm committed Jul 21, 2023
1 parent 3443710 commit be32e3e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -667,11 +667,15 @@ sumologic:
sumologic.com/scrape: "true"
- name: collection-sumologic-prometheus
endpoints:
- port: web
- port: http-web
path: /metrics
metricRelabelings:
- action: keep
regex: prometheus_remote_storage_.*
sourceLabels: [__name__]
selector:
matchLabels:
operated-prometheus: "true"
app: kube-prometheus-stack-prometheus

### Traces configuration
## Set the enabled flag to false to disable traces ingestion.
Expand Down Expand Up @@ -2182,7 +2186,7 @@ kube-prometheus-stack:
remoteTimeout: 5s
writeRelabelConfigs:
- action: keep
regex: (?:kube-state-metrics|kubelet|kube-scheduler|apiserver|coredns|kube-etcd|.+-sumologic-.+|.+-prometheus)
regex: (?:kube-state-metrics|kubelet|kube-scheduler|apiserver|coredns|kube-etcd|.+-sumologic-.+|.+-prometheus|.+-fluent-bit)
sourceLabels: [job]
## This is only used for recording rules
- action: drop
Expand Down

0 comments on commit be32e3e

Please sign in to comment.