Skip to content

Instantly share code, notes, and snippets.

@dsouzajude
Last active September 26, 2020 12:06
Show Gist options
  • Select an option

  • Save dsouzajude/06e285c8782c8ee1edc979090042e8c2 to your computer and use it in GitHub Desktop.

Select an option

Save dsouzajude/06e285c8782c8ee1edc979090042e8c2 to your computer and use it in GitHub Desktop.
Sample Consul Service config with sidecar proxy definition to export prometheus metrics
{
"service": {
"id": "0DD4A483-AFD6-4866-ABF9-9FC5A50A2AE7",
"name": "serviceA",
"port": 8080,
"address": "10.0.1.151",
"connect": {
"sidecar_service": {
"name": "serviceA-proxy",
"proxy": {
"config": {
"envoy_prometheus_bind_addr": "0.0.0.0:9102"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment