1
0
Fork 0

v-m: Scrape Zinciti metrics from K8s nodes

All the Kubernetes nodes (except *k8s-ctrl0*) are now running Fedora
CoreOS.  We can therefore use the Kubernetes API to discover scrape
targets for the Zincati job.
etcd
Dustin 2024-06-30 12:00:49 -05:00
parent 31345bee7b
commit 65e53ad16d
1 changed files with 8 additions and 3 deletions

View File

@ -290,15 +290,20 @@ scrape_configs:
metrics_path: /bridge?selector=zincati metrics_path: /bridge?selector=zincati
static_configs: static_configs:
- targets: - targets:
- k8s-aarch64-n0.pyrocufflink.blue
- k8s-aarch64-n1.pyrocufflink.blue
- k8s-amd64-n3.pyrocufflink.blue
- loki0.pyrocufflink.blue - loki0.pyrocufflink.blue
- nut0.pyrocufflink.blue - nut0.pyrocufflink.blue
- nvr2.pyrocufflink.blue - nvr2.pyrocufflink.blue
- serial1.pyrocufflink.blue - serial1.pyrocufflink.blue
- unifi2.pyrocufflink.blue - unifi2.pyrocufflink.blue
kubernetes_sd_configs:
- role: node
relabel_configs: relabel_configs:
- source_labels: [__meta_kubernetes_node_name]
regex: k8s-ctrl0.pyrocufflink.blue
action: drop
- source_labels: [__meta_kubernetes_node_name]
regex: '(.+)'
target_label: __address__
- source_labels: [__address__] - source_labels: [__address__]
target_label: instance target_label: instance
- source_labels: [__address__] - source_labels: [__address__]