.
This commit is contained in:
@@ -30,34 +30,39 @@ metadata:
|
|||||||
name: calico-kube-controllers
|
name: calico-kube-controllers
|
||||||
namespace: vm
|
namespace: vm
|
||||||
spec:
|
spec:
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: kube-controllers
|
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- calico-system
|
- calico-system
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: calico-kube-controllers
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: metrics-port
|
||||||
path: /metrics
|
path: /metrics
|
||||||
scheme: http
|
scheme: http
|
||||||
interval: 30s
|
interval: 30s
|
||||||
scrapeTimeout: 10s
|
scrapeTimeout: 10s
|
||||||
---
|
---
|
||||||
apiVersion: operator.victoriametrics.com/v1beta1
|
apiVersion: operator.victoriametrics.com/v1beta1
|
||||||
kind: VMServiceScrape
|
kind: VMPodScrape
|
||||||
metadata:
|
metadata:
|
||||||
name: calico-typha
|
name: calico-typha
|
||||||
namespace: vm
|
namespace: vm
|
||||||
spec:
|
spec:
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: calico-typha
|
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- calico-system
|
- calico-system
|
||||||
endpoints:
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: calico-typha
|
||||||
|
podMetricsEndpoints:
|
||||||
- targetPort: 9093
|
- targetPort: 9093
|
||||||
path: /metrics
|
path: /metrics
|
||||||
scheme: http
|
scheme: http
|
||||||
interval: 30s
|
interval: 30s
|
||||||
scrapeTimeout: 10s
|
scrapeTimeout: 10s
|
||||||
|
relabelConfigs:
|
||||||
|
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||||
|
targetLabel: pod
|
||||||
|
- sourceLabels: [__meta_kubernetes_namespace]
|
||||||
|
targetLabel: kubernetes_namespace
|
||||||
Reference in New Issue
Block a user