Festus1965 wrote: ↑Wed Jul 14, 2021 17:52
what IP is meant here as instead of 127.0.0.1:
* the ip where pushgateway, and prometheus are running
* or the here at me other IP of grafana
The 127.0.0.1 is just assuming you run pushgateway (and prometheus) on your computer where mt is running on. This computer is called localhost. So if you dont have pushgateway and prometheus on localhost then change 127.0.0.1 to that computer IP address.
So dont use the ip of grafana here!!!!
Festus1965 wrote: ↑Wed Jul 14, 2021 17:52
as with the 127.0.0.1 or the real IP from push_gateway I got
Code: Select all
2021-07-15 00:15:41: ERROR[CurlFetch]: https://127.0.0.1/push/metrics/job/minetest/instance/Asia Thailand not found (SSL peer certificate or SSH remote key was not OK) (response code 0)
This error seems like only an SSL error. And i see why:
Code: Select all
ERROR[CurlFetch]: https://127.0.0.1/push/
it tries to connect to https:// and not http://
and btw it seems like it misses the port (9091) too.
And btw DONT USE SPACES IN LINKS, that wont work, replace it with a '_'
If you use this in your minetest.conf then you shall be fine if pushgateway is running on localhost:
Code: Select all
monitoring.prometheus_push_url = http://127.0.0.1:9091/metrics/job/minetest/instance/Asia_Thailand