Not able to access metrics from a clustered server

Status
Not open for further replies.

rohan_sirohi

New Member
Oct 30, 2023
5
0
1
I have 3 servers all 3 having different public IP - All 3 servers are clustered.

> Datacenter (InfluxDB is connected via metric) ~ Used Public IP in metric to connect influxDB
>> Server 1
>> Server 2
>> Server 3
>>> InfluxDB (Setup on server 3 on port 8086)

In influxDB I am getting data of server 1 and server 2 but I am not getting any data of server 3 its not even showing in influxdb Dashboard.



My virtual network is configured as

Code:
        auto vmbr0
        iface vmbr0 inet static

        address 192.168.13.1/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0

        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
        post-down echo 0 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '192.168.13.0/24' -o enp6s0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.13.0/24' -o enp6s0 -j MASQUERADE
        post-up   iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
        post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1

        post-up   iptables -t nat -A PREROUTING -i enp6s0 -p tcp --dport 80 -j DNAT --to-destination 192.168.13.107:80
        post-down iptables -t nat -D PREROUTING -i enp6s0 -p tcp --dport 80 -j DNAT --to-destination 192.168.13.107:80
        post-up   iptables -t nat -A PREROUTING -i enp6s0 -p tcp --dport 443 -j DNAT --to-destination 192.168.13.107:443
        post-down iptables -t nat -D PREROUTING -i enp6s0 -p tcp --dport 443 -j DNAT --to-destination 192.158.13.107:443

        post-up   iptables -t nat -A PREROUTING -i enp6s0 -p tcp --dport 8086 -j DNAT --to-destination 192.168.13.105:8086
        post-down iptables -t nat -D PREROUTING -i enp6s0 -p tcp --dport 8086 -j DNAT --to-destination 192.158.13.105:8086

You maybe thinking why I put the VMs behind NAT like this?
Because we cannot expose machines to the web directly and we are using a 3rd party hosting provider. As far as we know, we cannot expose more than 1 MAC address. If there is a better way, looking forward to suggestions

What can I do in my routing so I can get data of server 3 also in influxDB also??
 
Last edited:
Status
Not open for further replies.

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!