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
|
kind: Service
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: example-app
|
name: example-app
|
||||||
labels:
|
labels:
|
||||||
tier: frontend
|
tier: frontend
|
||||||
namespace: default
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: example-app
|
app: example-app
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
@@ -9,6 +9,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
tier: frontend
|
tier: frontend
|
||||||
|
targetLabels:
|
||||||
|
- tier
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: web
|
- port: web
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
Reference in New Issue
Block a user