Skip to content

Commit

Permalink
Scrape dnsperfgo pods that generate DNS metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
dlapcevic committed May 19, 2022
1 parent e6c9306 commit 8912934
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{$ENABLE_DNSTESTS := DefaultParam .CL2_ENABLE_DNSTESTS false}}

{{if $ENABLE_DNSTESTS}}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
k8s-app: dns-client-pods
name: dns-client-pods
namespace: monitoring
spec:
podMetricsEndpoints:
- interval: 30s
port: dnsperfmetrics
jobLabel: k8s-app
selector:
matchLabels:
dns-test: dnsperfgo
namespaceSelector:
any: true
{{end}}

0 comments on commit 8912934

Please sign in to comment.