Skip to content

Instantly share code, notes, and snippets.

@tomwilkie
Created July 25, 2018 21:03
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 tomwilkie/a526b4337e0ef7d7ee6ecde4e0d629ff to your computer and use it in GitHub Desktop.
Save tomwilkie/a526b4337e0ef7d7ee6ecde4e0d629ff to your computer and use it in GitHub Desktop.
- match: consul.consul.http.*
name: consul_http_request
labels:
method: $1
path: /
- match: consul.consul.http.*.*
name: consul_http_request
labels:
method: $1
path: /$2
- match: consul.consul.http.*.*.*
name: consul_http_request
labels:
method: $1
path: /$2/$3
- match: consul.consul.http.*.*.*.*
name: consul_http_request
labels:
method: $1
path: /$2/$3/$4
- match: consul.consul.http.*.*.*.*.*
name: consul_http_request
labels:
method: $1
path: /$2/$3/$4/$5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment