Created
September 5, 2017 14:53
-
-
Save Smithx10/4e6d1b954663be55f282f7cbc30f54d6 to your computer and use it in GitHub Desktop.
Marathon_sd_config
This file contains 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: 'marathon' | |
metrics_path: /prometheus | |
scrape_interval: 15s | |
marathon_sd_configs: | |
- servers: | |
- 'http://dcos-master-001.inst.smith.tritonhost.com:8080' | |
relabel_configs: | |
- source_labels: ['__meta_marathon_app'] | |
target_label: 'marathon_app' | |
- source_labels: ['__meta_marathon_task'] | |
regex: '([^.]+?)[.].*' | |
replacement: '${1}' | |
target_label: 'app_name' | |
- source_labels: ['__meta_marathon_app_label_PROMETHEUS'] | |
regex: '1' | |
action: 'keep' | |
- source_labels: ['__meta_marathon_port_definition_label_PROMETHEUS_SKIP'] | |
regex: '1' | |
action: 'drop' | |
- source_labels: ['__meta_marathon_port_mapping_label_PROMETHEUS_SKIP'] | |
regex: '1' | |
action: 'drop' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment