mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-17 07:04:36 -05:00
traefikConfigProvider returns incomplete service names? Service name in prometheus is always 1-service, 2-service etc #720
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @eugeniumegherea on GitHub (Oct 15, 2025).
Describe the Bug
First of all, amazing project! I am not sure if this is a valid bug so please correct me
I have an issue where prometheus doesn't see the service names correctly. I've enabled prometheus endpoint in traefik and added them to the default traefik dashboard. I wanted to understand how can we see the resources names in there but I am struggling so far. I have added 6 services so far
I was digging into the code and found the traefik provider that exposes the targets and it seems that that service name is set from the api itself.
3b8ba47377/server/lib/traefik/getTraefikConfig.ts (L199)But what is confusing to me, if
resource.namewould have been empty, service name would be${key}--service(double dashes in case name is empty). So I don't yet understand where the service names like<number>-serviceis coming from. Maybe there is some sanitization further down the line that I don't know.and then here it creates a named config for all resources and matching rules etc that it then returns back to traefik
3b8ba47377/server/lib/traefik/getTraefikConfig.ts (L421)Surely I miss something but cannot understand what, I'll appreciate any help on this
Environment
I only run pangolin and traefik in docker compose. I don't need tunneling so far.
docker config:
I am running prometheus and grafana in a separate proxmox container which I am not sure if this is revelant, they are not custom in any way.
To Reproduce
Create a simple proxy service, run a few requests through it and then access grafana and check the reported service names
Expected Behavior
Prometheus should have a human friendly service names, ideally the names of the resources from the pangolin UI
@eugeniumegherea commented on GitHub (Oct 17, 2025):
I installed today 1.11.0 and the issue is gone, it was fixed it seems. Thank you very much!
I will close the issue
@oschwartz10612 commented on GitHub (Oct 17, 2025):
Glad its working well! We added the resource names into the
services/routers in the latest release! :}