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