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
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)