Last active
December 4, 2018 15:36
-
-
Save grim-yawn/f9a1ff39228020a6e46b7a7f0508599c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- job_name: 'reddit-endpoints' | |
kubernetes_sd_configs: | |
- role: endpoints | |
relabel_configs: | |
# Используем действие keep, чтобы оставить только эндпоинты сервисов с метками “app=reddit” | |
- source_labels: [__meta_kubernetes_service_label_app] | |
action: keep | |
regex: reddit | |
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape] | |
action: drop | |
regex: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment