Not able to get metrics from clustered server INFLUXDB2

rohan_sirohi

New Member
Oct 30, 2023
5
0
1
I have three clustered servers, each with a distinct public IP address:

  1. Datacenter (Connected via InfluxDB)
    1. Server 1
      1. Some Machines and containers
    2. Server 2
      1. Some Machines and containers
    3. Server 3
      1. InfluxDB (Configured with the default port)
      2. Some Machines and containers

Although I am successfully retrieving data from Server 1 and Server 2, I am encountering an issue obtaining data from Server 3.

My virtual network is configured as follows:

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 might be wondering why I've placed the VMs behind NAT in this manner. This approach is necessary because we cannot expose machines directly to the web, given that we are utilizing a third-party hosting provider. To the best of our knowledge, exposing more than one MAC address is not feasible. I welcome any suggestions for a more optimal solution.

Could someone provide guidance on the necessary routing changes to enable data retrieval from Server 3?
 
Can anyone guide me how can I check logs of metrics of a proxmox server like so I get proper information where I am stuck and why data is not coming? from machine 2 and 3
 

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!