Skip to content
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

Prometheus dashboard #3186

Merged
merged 8 commits into from
Sep 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
IMPROVEMENTS:
* api: Metrics endpoint exposes Prometheus formatted metrics [GH-3171]
* telemetry: Add support for tagged metrics for Nomad clients [GH-3147]
* telemetry: Add basic Prometheus configuration for a Nomad cluster [GH-3186]

BUG FIXES:
* core: *Fix restoration of stopped periodic jobs [GH-3201]
Expand Down
12 changes: 12 additions & 0 deletions integrations/prometheus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Prometheus Metrics

This configuration file can be used to set up a Prometheus instance to read
data from Nomad cluster, using Consul for service discovery.

Requirements:
- See Prometheus's
[Getting Started](https://prometheus.io/docs/introduction/getting_started/)
guide for instructions on how to set up a Prometheus server.
- This configuration is written assuming there is a local Consul agent being
run along side the Prometheus server. If this is not the case, the
configuration will need to be updated to point at the remote Consul agent.
16 changes: 16 additions & 0 deletions integrations/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
scrape_configs:
- job_name: 'nomad_metrics'

consul_sd_configs:
- server: 'localhost:8500'
services: ['nomad-client', 'nomad']

relabel_configs:
- source_labels: ['__meta_consul_tags']
regex: '(.*)http(.*)'
action: keep

scrape_interval: 5s
metrics_path: /v1/metrics
params:
format: ['prometheus']