Skip to content

Commit

Permalink
Generate new overrides yaml/libsonnet file(s).
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI committed Apr 15, 2020
1 parent a066e0d commit 8367beb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
18 changes: 10 additions & 8 deletions deploy/helm/prometheus-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ prometheus:
regex: (?:up|prometheus_remote_storage_.*|fluentd_.*|fluentbit.*|otelcol.*)
sourceLabels: [__name__]
- # control plane metrics
# coredns
url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.application.control-plane
writeRelabelConfigs:
- # coredns
action: keep
regex: (?:coredns_.*)
sourceLabels: [__name__]
- # etcd server
action: keep
regex: (?:etcd_(debugging|disk|grpc|network|server)_.*)
sourceLabels: [__name__]
- action: keep
regex: coredns
sourceLabels: [job]
- # etcd server
url: http://$(CHART).$(NAMESPACE).svc.cluster.local:9888/prometheus.metrics.application.control-plane
writeRelabelConfigs:
- action: keep
regex: kube-etcd
sourceLabels: [job]
15 changes: 10 additions & 5 deletions deploy/kubernetes/kube-prometheus-sumo-logic-mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,21 @@
writeRelabelConfigs: [
{
action: "keep",
regex: "(?:coredns_.*)",
regex: "coredns",
sourceLabels: [
"__name__"
"job"
]
},
}
]
},
{
url: $._config.sumologicCollectorSvc + "prometheus.metrics.application.control-plane",
writeRelabelConfigs: [
{
action: "keep",
regex: "(?:etcd_(debugging|disk|grpc|network|server)_.*)",
regex: "kube-etcd",
sourceLabels: [
"__name__"
"job"
]
}
]
Expand Down

0 comments on commit 8367beb

Please sign in to comment.