Last active
September 24, 2018 16:10
-
-
Save philandstuff/6fc6c3dc799d1331660d71f1b5b2adf6 to your computer and use it in GitHub Desktop.
Prototype for how we might do prometheus targets from the service broker in a better way
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
scrape_configs: | |
- job_name: 'paas' | |
scheme: https | |
static_configs: | |
- targets: ['guid:0','guid:1'] | |
labels: | |
job: foo | |
space: my-space | |
org: my-org | |
__route: foo.cloudapps.digital | |
relabel_configs: | |
- source_labels: [__address__] | |
regex: (.*):.* | |
target_label: __param_cf_app_guid | |
- source_labels: [__address__] | |
regex: .*:(.*) | |
target_label: __param_cf_app_instance_index | |
- source_labels: [__address__] | |
regex: .*:(.*) | |
target_label: cf_app_instance | |
- source_labels: [__address__] | |
target_label: instance | |
- source_labels: [__route] | |
target_label: __address__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment