You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how can i add multiple labels in selector field for same job in prometheus config. currently prometheus able to fetch only on single label, but i want to add multiple labels in the same job.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
how can i add multiple labels in selector field for same job in prometheus config. currently prometheus able to fetch only on single label, but i want to add multiple labels in the same job.
metrics_path: '/metrics'
scrape_interval: 30s
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- dev-test
selectors:
- role: pod
label: "type=receiver"
relabel_configs:
- source_labels: [__meta_kubernetes_pod_container_port_number]
action: keep
regex: 1234
Beta Was this translation helpful? Give feedback.
All reactions