I have a weird setup for my Grafana, Prometheus and LDAP.
I have all my machines identified in LDAP and I call them by their hostname.
I have one container for Grafana which connects to Prometheus by http://prometheus:9090, and the second container has Prometheus, nslcd and LDAP, I can ping from inside the Prometheus container using machine’s hostname, but Prometheus can’t see them and shows this error for all machines:
ts=2024-08-06T07:43:12.151Z caller=scrape.go:1337 level=debug component="scrape manager" scrape_pool=MACHINE-POOL target=http://HOSTNAME:9100/metrics msg="Scrape failed" err="Get "http://HOSTNAME:9100/metrics/": dial tcp: lookup HOSTNAME on 127.0.0.11:53: server misbehaving"
Any suggestions?