kubernetes SD config for Ingressroute Traefik

54 views
Skip to first unread message

Ishvar B

unread,
Aug 7, 2020, 3:27:01 AM8/7/20
to Prometheus Users
Hi,

I am trying to use auto discovery of metrics endpoints for my k8s cluster. While I am able to scrape pod and service level metrics, i have metrics exposed by ingressroute(traefik). So if anybody knows how to use auto discovery with traefik, it would of great help.

Thanks
Eswar

Matthias Rampke

unread,
Aug 8, 2020, 8:27:55 AM8/8/20
to Ishvar B, Prometheus Users
Can you explain more what "metrics exposed by ingressroute" looks like? This only configures traefik; are the metrics you are looking for exposed by traefik or by the service that the ingressroute refers to?

/MR

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/4fddc1e1-98d5-4036-9cad-bd2123bec199o%40googlegroups.com.

Ishvar B

unread,
Aug 10, 2020, 7:02:18 AM8/10/20
to Prometheus Users
Hi,

The metrics exposed would look like below.

traefik_entrypoint_request_duration_seconds_bucket{code="200",entrypoint="https",method="GET",protocol="http",le="0.1"} 2
traefik_entrypoint_request_duration_seconds_bucket{code="200",entrypoint="https",method="GET",protocol="http",le="0.3"} 50
traefik_entrypoint_request_duration_seconds_bucket{code="200",entrypoint="https",method="GET",protocol="http",le="1.2"} 51
traefik_entrypoint_request_duration_seconds_bucket{code="200",entrypoint="https",method="GET",protocol="http",le="5"} 55
traefik_entrypoint_request_duration_seconds_bucket{code="200",entrypoint="https",method="GET",protocol="http",le="+Inf"} 55

These are exposed by traefik and not by the service. 

Thanks
Eswar

On Saturday, 8 August 2020 14:27:55 UTC+2, Matthias Rampke wrote:
Can you explain more what "metrics exposed by ingressroute" looks like? This only configures traefik; are the metrics you are looking for exposed by traefik or by the service that the ingressroute refers to?

/MR

On Fri, Aug 7, 2020, 09:27 Ishvar B <ish...@gmail.com> wrote:
Hi,

I am trying to use auto discovery of metrics endpoints for my k8s cluster. While I am able to scrape pod and service level metrics, i have metrics exposed by ingressroute(traefik). So if anybody knows how to use auto discovery with traefik, it would of great help.

Thanks
Eswar

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages