Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/aggregated_metrics path not working when first worker is is not 0 #166

Open
ghost opened this issue Aug 19, 2020 · 1 comment
Open

/aggregated_metrics path not working when first worker is is not 0 #166

ghost opened this issue Aug 19, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 19, 2020

I have a setup where the forward input plugin is set to workers 1-3 and systemd is set to worker 0, the prometheus plugin is using the default port 24231
if I curl the url at /aggregated_metrics path at the port I get connection refused, If I hit the url at the next port I get: Failed to open TCP connection to 127.0.0.1:24231 (Connection refused - connect(2) for "127.0.0.1" port 24231)

24231 + 1 = 24232
24231 + 2 = 24233
24231 + 3 = 24234
2020-08-19 13:40:58 +0000 [debug]: #1 [input_prometheus] listening prometheus http server on http://0.0.0.0:24232//metrics for worker1
2020-08-19 13:40:58 +0000 [debug]: #2 [input_prometheus] listening prometheus http server on http://0.0.0.0:24233//metrics for worker2
2020-08-19 13:40:58 +0000 [debug]: #3 [input_prometheus] listening prometheus http server on http://0.0.0.0:24234//metrics for worker3

$ curl http://localhost:24232/aggregated_metrics
Failed to open TCP connection to 127.0.0.1:24231 (Connection refused - connect(2) for "127.0.0.1" port 24231)

@raviepgithub
Copy link

I'm also facing similar issue. Is this working fine for you now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant