Grafana server IP change

293 views
Skip to first unread message

Hemedi Salim

unread,
Jan 17, 2023, 5:04:46 AM1/17/23
to Prometheus Users
Hi Lads,

I am a bit new in this field. I have implemented a grafana server with prometheus and alertmanager install and all works fine. But now we are thinking of  moving from the subnet where the grafana and prometheus are installed to a new subnet (to change IP address).

my question is does anybody have an idea on this or Does the changing IP address affect the operation of prometheus and grafana?

(all prometheus and grafana are install in one vm)


Thanks in advance 

Brian Candler

unread,
Jan 17, 2023, 6:10:25 AM1/17/23
to Prometheus Users
Prometheus doesn't care what IP address it listens on, and as far as I know nor does Grafana.  If they are running in the same VM, and Grafana is pointing to http://127.0.0.1:9090 to query Prometheus, then it won't even notice the change.

The things which will will make a difference are:
- if you change the IP addresses of the targets that are being scraped
- if the targets are using firewall rules or ACLs to accept scrapes only from a particular IP address
- if the targets are configured to use Remote Write to connect actively to the Prometheus server on its IP address (this is a relatively unusual configuration)
- if anything else connects to Prometheus to query it

Issues about Grafana specifically would best be addressed to the Grafana community.

Hemedi Salim

unread,
Jan 17, 2023, 7:19:18 AM1/17/23
to Prometheus Users
Thanks, very much. I got it.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b3bddde6-0970-4f58-8061-579d54b0d905n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages