Skip to content

Add support for prometheus metrics#4

Merged
danielmcgrath merged 2 commits intomasterfrom
daniel/prometheus
Aug 17, 2017
Merged

Add support for prometheus metrics#4
danielmcgrath merged 2 commits intomasterfrom
daniel/prometheus

Conversation

@danielmcgrath
Copy link
Contributor

This change introduces support for exposing an HTTP endpoint for Prometheus to scrape on a simple webserver, and abstracts away the actual logging of metrics behind a discrete Instrumenter interface.

This change introduces support for exposing an HTTP endpoint for Prometheus to scrape on a simple webserver, and abstracts away the actual logging of metrics behind a discrete Instrumenter interface.
@danielmcgrath danielmcgrath requested a review from mikeybtn August 15, 2017 17:54
Copy link
Contributor

@mikeybtn mikeybtn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

README.md Outdated
* `STATSD_PORT`: Port of statsd server (no default);
* `STATSD_PREFIX`: Optional prefix to use with statsd metrics (no default).
* `STATSD_USE_TCP`: If non-empty, use tcp instead of udp (no default).
* `PROMETHEUS_HTTP_PORT`: Port to serve prometheus metrics from (no default).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might find other uses for the HTTP service beyond prometheus, so minor suggestion to refer to this as something more general (eg HTTP_SERVICE_PORT).

@danielmcgrath danielmcgrath merged commit ea94c92 into master Aug 17, 2017
@danielmcgrath danielmcgrath deleted the daniel/prometheus branch August 17, 2017 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants