-
Notifications
You must be signed in to change notification settings - Fork 26
No caddy_ metrics exposed when using proxies #17
Comments
So without the proxy it does work? On 8 Sep 2016 9:47 pm, "Matthias Loibl" notifications@github.com wrote:
|
Actually, I don't know. All my applications are inside containers and are only proxied to. |
I can't really tell what (and if) there is a problem here. Can you curl the On 8 Sep 2016 10:26 pm, "Matthias Loibl" notifications@github.com wrote:
|
Ok, so I've added a test host like:
After letting caddy run for 5min and hitting the site a few times (and others as well) I have t he following metrics.
What's wrong with the metrics:
I know that we tried this at work too and had the same issues. |
[ Quoting notifications@github.com in "Re: [miekg/caddy-prometheus] No cad..." ]
Which looking at the above config file makes sense.
There is no magic rewriting going on. hmm, just looking at handler.go, I use /Miek Miek Gieben |
Refering to 1: This is just an excerpt from my Caddyfile. There are like 15 - 20 more hosts overall and they're up and running because I can use the applications behind that 😊 |
[ Quoting notifications@github.com in "Re: [miekg/caddy-prometheus] No cad..." ]
I still have no good idea on what your problem is. Can you boil it down to /Miek Miek Gieben |
Ok, sorry for that. That's about it. 😊 |
hi, i have the same problem. my caddyfile looks like this:
caddy works fine, i can access my public-servers with their name and they proxy the requests to the local running processes. but i do not get any metrics with a |
Can this be an plugin ordering problem? I.e. proxy comes after prometheus? |
hi, that's right. when i move the plugin to this position: "expvar",
"prometheus", // github.com/miekg/caddy-prometheus
"proxy", i get metrics. but i really do not know which is the right position. this was only a test. and this is my Caddyfile for testing:
where |
[ Quoting notifications@github.com in "Re: [miekg/caddy-prometheus] No cad..." ]
It needs to be before anything you want to measure, I've put it way up in the |
So who's in charge of the official downloads? Probably @mholt right? 😊 |
Yes @mholt |
anything i can do to get the reordering? |
[ Quoting notifications@github.com in "Re: [miekg/caddy-prometheus] No cad..." ]
Use the source, Luke... edit the file where the ordering is defined and put this /Miek Miek Gieben |
yes master :-) but it would be great to have the official caddyserver also with another ordering, because my playbooks for my servers download the official binaries. so i wonder if i should file a issue/pr to caddy? |
[ Quoting notifications@github.com in "Re: [miekg/caddy-prometheus] No cad..." ]
:-)
Yes, please do. /Miek Miek Gieben |
This issue was fixed with the new caddy version 0.9.2. |
Hello, I think I have the same issue. Here is my Caddyfile:
I followed the official Docker custom plugin guide and got this problem. Should I report this to abiosoft/caddy-docker? |
Hey,
I'd really like to use this plugin! Exactly what I need.
I download caddy like
https://caddyserver.com/download/build?os=linux&arch=amd64&features=prometheus
and build a docker image with it.The Caddyfile includes only hosts like this:
The metrics are exposed and also scraped.
Nevertheless there are not metrics with a
caddy_
prefix.Let me know if you need more info.
Thanks.
The text was updated successfully, but these errors were encountered: