Merge pull request #1145 from brancz/targetlabels
prometheus: Add ability to whitelist Kubernetes labels
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
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
|
||||
|
Reference in New Issue
Block a user