Skip to content

Instantly share code, notes, and snippets.

@philandstuff
Last active September 24, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philandstuff/6fc6c3dc799d1331660d71f1b5b2adf6 to your computer and use it in GitHub Desktop.
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
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