#Configure Prometheus for Multiple pollers on one container setup

1 messages · Page 1 of 1 (latest)

daring tapir
#

Hi,
In Harvest, i am trying to run multiple pollers in one container and view on prometheus, i checked the previous discussion on same https://github.com/NetApp/harvest/discussions/2041#discussioncomment-5802274
and was able to bring multiple pollers on same container as shown below:

docker logs eff829ecd0ca

Datacenter | Poller | PID | PromPort | Status
-------------+------------+-----+----------+----------
local | unix | 22 | 12990 | running
DC-01 | cluster-01 | 21 | 13001 | running
DC-01 | cluster-02 | 26 | 13002 | running
DC-01 | cluster-03 | 32 | 13003 | running
DC-01 | cluster-04 | 30 | 13004 | running
DC-01 | cluster-05 | 31 | 13005 | running
DC-01 | cluster-06 | 35 | 13006 | running
DC-01 | cluster-07 | 40 | 13007 | running
DC-01 | cluster-08 | 43 | 13008 | running
DC-01 | cluster-09 | 44 | 13009 | running
DC-01 | cluster-10 | 46 | 13010 | running
DC-01 | cluster-11 | 50 | 13011 | running
DC-01 | cluster-12 | 52 | 13012 | running
DC-01 | cluster-13 | 53 | 13013 | running

However , when i try to bring up the Prometheus , all the connections are shown as Down , not sure how to configure same,
Please help configure prometheus so i can view the all the pollers metrics configured in the container.

forest radish
#

@daring tapir Can you verify if both Harvest and Prometheus are on the same Docker network. Also, ensure that the service name in the docker-compose.yml file matches the name that Prometheus is looking for.

subtle pendant
#

What’s strikes me is that you seem to be talking to different hosts on different ports. Instead of same host multiple ports.