-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support triton metrics #21
Conversation
examples/triton/setup.sh
Outdated
|
||
echo '# Prometheus discovery for Triton' > _env | ||
echo TRITON_ACCOUNT=${TRITON_ACCOUNT} >> _env | ||
echo TRITON_DC=${TRITON_DC} >> _env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was intentionally trying avoid DC-specific details in the _env
file, that's why this was commented out in https://github.com/autopilotpattern/prometheus/pull/18/files#diff-86aea33913dc22bc9ba97b5f7b8c956eR102
examples/triton/setup.sh
Outdated
echo >> _env | ||
|
||
echo '# Consul discovery via Triton CNS' >> _env | ||
echo CONSUL=prometheus-consul.svc.${TRITON_ACCOUNT}.${TRITON_DC}.cns.joyent.com >> _env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use the new triton-docker
helpers for the Consul address. See https://github.com/joyent/triton-docker-cli#notes-and-cautions-about-cns-env-vars and an example in https://github.com/autopilotpattern/nginx/blob/master/examples/triton/docker-compose.yml#L12
@misterbisson updated. |
@misterbisson ping, how does this current implementation look to you? |
|
||
# Consul is the service catalog | ||
consul: | ||
image: autopilotpattern/consul:0.7.2-r0.8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to update this one (https://github.com/autopilotpattern/consul/releases), but we can do that later: #22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:pickles:
commit cb417d8 Author: Patrick Double <[email protected]> Date: Tue Dec 5 08:16:00 2017 -0600 prometheus 1.7.2 commit 367b28c Merge: e59e56c 7d3ac64 Author: Patrick Double <[email protected]> Date: Tue Dec 5 08:06:57 2017 -0600 Merge remote-tracking branch 'upstream/master' into node_exporter commit e59e56c Author: Patrick Double <[email protected]> Date: Tue Dec 5 06:58:02 2017 -0600 Fix service name of node-exporter commit f063d0d Author: Patrick Double <[email protected]> Date: Mon Dec 4 09:19:14 2017 -0600 Consul 1.0.1, Containerpilot 3.5.1 commit 7d3ac64 Merge: 73f0b8e c12497a Author: Justin Reagor <[email protected]> Date: Thu Jul 20 10:29:44 2017 -0400 Merge pull request autopilotpattern#24 from autopilotpattern/b-patch-doc Quick doc fix under Triton example commit c12497a Author: Justin Reagor <[email protected]> Date: Thu Jul 20 10:00:05 2017 -0400 Mention triton-compose in triton example docs commit 73f0b8e Merge: 03c07b4 34db0b5 Author: Wyatt Preul <[email protected]> Date: Fri Jul 7 19:16:31 2017 -0600 Merge pull request autopilotpattern#21 from geek/triton Support triton metrics commit a265179 Author: Patrick Double <[email protected]> Date: Wed Jun 21 17:56:49 2017 -0500 Add docker health check commit e4d996b Author: Patrick Double <[email protected]> Date: Wed Jun 21 12:56:08 2017 -0500 Use default scrape interval of 15s commit 34db0b5 Author: geek <[email protected]> Date: Fri Jun 16 13:02:46 2017 -0500 Support triton metrics commit 03c07b4 Merge: 2dcb716 dd98a75 Author: Wyatt Preul <[email protected]> Date: Thu Jun 15 15:25:34 2017 -0500 Merge pull request autopilotpattern#20 from geek/master Support latest versions and consul agent commit dd98a75 Author: geek <[email protected]> Date: Thu Jun 15 12:44:59 2017 -0500 Support latest versions and consul agent commit da9fddd Author: Patrick Double <[email protected]> Date: Tue Jun 13 17:02:19 2017 -0500 Add node_exporter service
Carries #18, which carried #17, which intended to fix: #16, #8, and #5, and #19
Remaining for future PR: /tests and makefile