Skip to content
Snippets Groups Projects
Commit 3246c489 authored by Frederic Branczyk's avatar Frederic Branczyk
Browse files

prometheus: Add ability to whitelist Kubernetes labels

parent 4c77a9db
No related branches found
No related tags found
No related merge requests found
kind: Service
apiVersion: v1
metadata:
metadata:
name: example-app
labels:
tier: frontend
namespace: default
spec:
selector:
app: example-app
spec:
selector:
app: example-app
ports:
- name: web
protocol: TCP
......
......@@ -9,6 +9,8 @@ spec:
selector:
matchLabels:
tier: frontend
targetLabels:
- tier
endpoints:
- port: web
interval: 10s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment