I’m developing a tool which needs to query data from victoriametrics/victoriametrics of PMM,
but after exposing port 9090, I still can not connect to victoriametrics out of the docker container.
I attached into the container, it seems that victoriametrics only listens on IP 127.0.0.1:9090.
I tried to modify victoriametrics config file(path in container: /etc/victoriametrics-promscrape.yml), but after restarting container, the config file was restored to the old state, it seems that pmm-managed process manages the config file, there is warning comment in the first line:
I also tried to modify pmm-managed config file(path in container: /etc/supervisord.d/pmm.ini),
but after restarting docker container, it was restored to old state, too.
so is there anyway to change the listening IP address of victoriametrics?
thanks in advance.
update on 2021-04-21
this update is just to remind other guys who have the same confusion,
querying data from victriametrics could be done via http://your.pmm.ip/prometheus.
it turns out that there is an nginx in pmm, all access to pmm component (including grafana) will access nginx first, and then nginx will forward the request to the corresponding component.