Traefik: Prometheus: More detailed metrics

Created on 17 Apr 2018  路  3Comments  路  Source: traefik/traefik

Do you want to request a feature or report a bug?

Feature

What did you expect to see?

I like to have a more detailed metric with prometeus.
For example:

  • Requests per Route
  • Requests per Backend
  • Average Time per Backend
  • Average Time per Route
aremiddlewarmetrics kinenhancement prioritP3

Most helpful comment

as an example, i'd really like to know which API (based on a path) is slower than others when using the traefik_backend_requests_total metric. my services don't have an unbounded number of APIs so perhaps Traefik could only fill the label for backend requests that are not a 404 to avoid client spam.

All 3 comments

Hi @danielh1989,

Thanks for your interest in Tr忙fik projet.

For information, the current available metrics are :

  • config_reloads_total
  • traefik_config_reloads_failure_total
  • traefik_config_last_reload_success
  • traefik_config_last_reload_failure
  • traefik_entrypoint_requests_total
  • traefik_entrypoint_request_duration_seconds
  • traefik_entrypoint_open_connections
  • traefik_backend_requests_total
  • traefik_backend_request_duration_seconds
  • traefik_backend_open_connections
  • traefik_backend_retries_total
  • traefik_backend_server_up

What do you mean exactly when you tell "per route"? Prometheus doesn't like "unbound" label values and so putting an arbitrary path into it is not an option if you don't want to kill your Prometheus server.

as an example, i'd really like to know which API (based on a path) is slower than others when using the traefik_backend_requests_total metric. my services don't have an unbounded number of APIs so perhaps Traefik could only fill the label for backend requests that are not a 404 to avoid client spam.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leowmjw picture leowmjw  路  3Comments

arschles picture arschles  路  3Comments

Yggdrasil picture Yggdrasil  路  3Comments

JensErat picture JensErat  路  3Comments

f3l1x picture f3l1x  路  3Comments