Skip to content

Instantly share code, notes, and snippets.

@claritee
Last active April 11, 2018 13:43
Show Gist options
  • Save claritee/f18110c2e206ec089e68ff928cd6c96a to your computer and use it in GitHub Desktop.
Save claritee/f18110c2e206ec089e68ff928cd6c96a to your computer and use it in GitHub Desktop.
Prometheus

Notes on prometheus with elixir and grafana

Docs

Prometheus

Querying

Histogram

Average Request duration (sum/count), within 5 minute interval

rate(http_request_duration_milliseconds_sum[5m]) / rate(http_request_duration_milliseconds_count[5m])

Apdex score - Count observations falling into particular buckets of observation values. E.g. SLA to serve 95% of requests within 300ms - configure histogram to have bucket with an upper limit of 0.3 seconds

  sum(rate(http_request_duration_seconds_bucket{le="0.3"}[5m])) by (job)
/
  sum(rate(http_request_duration_seconds_count[5m])) by (job)

Libraries

Ruby

Java

Other Elixir

Integrations

https://elixirforum.com/t/prometheus-io-elixir-integrations/1796/11 https://elixirforum.com/t/prometheus-io-elixir-integrations/1796/6

Grafana

Docker

Articles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment