status.cfg for metric export

pierrick

New Member
Jan 9, 2018
2
0
1
38
hi everyone,
i want to export metric to InfluxDB.

My proxmox version :

root@hn4:/etc/pve# pveversion -v
proxmox-ve: 5.0-19 (running kernel: 4.10.17-2-pve)
pve-manager: 5.0-30 (running version: 5.0-30/5ab26bc)
pve-kernel-4.10.17-2-pve: 4.10.17-19
libpve-http-server-perl: 2.0-6
lvm2: 2.02.168-pve3
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-12
qemu-server: 5.0-15
pve-firmware: 2.0-2
libpve-common-perl: 5.0-16
libpve-guest-common-perl: 2.0-11
libpve-access-control: 5.0-6
libpve-storage-perl: 5.0-14
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.0-9
pve-qemu-kvm: 2.9.0-3
pve-container: 2.0-15
pve-firewall: 3.0-2
pve-ha-manager: 2.0-2
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.0.8-3
lxcfs: 2.0.7-pve4
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.6.5.9-pve16~bpo90

i had no status.cfg, i created one but how can i apply the configuration without restart my node ? A service reload ?

regards
 
more informations :

my status.cfg file :

root@hn4:/etc/pve# cat status.cfg
influxdb:
server xx.xx.xx.xx
port 8089
root@hn4:/etc/pve#

Actually nothing goes to my influxDB server.

regards
 
try to restart/reload the pvestatd service
 
If your InfluxDB listening on UDP?
In my /etc/influxdb/influxdb.conf
Code:
.....

[[udp]]
  enabled = true
  bind-address = ":8089"
  database = "proxmox"
  log-enabled = false

.....

And don't forget to create the database, from the machine with influxdb:
Code:
$ influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version 1.0.2
InfluxDB shell version: 1.0.2
> auth
username: admin
password:
> show databases
name: databases
---------------
name
_internal
proxmox
vzdump
prove
ceph

If you don't have the database called proxmox, just issue create database proxmox
 
Hi,
Same problem here, followed the docs, but no series appears in the Influxdb named "proxmox":

[root@localhost influxdb]# influx
Connected to localhost:8086 version 1.4.2
InfluxDB shell version: 1.4.2
> use proxmox
Using database proxmox
> show series
>

where i can find some logging from pvestatd service ?

Thanks
 
as stated above, verify the port in pve:/etc/pve/status.cfg and influxdb:/etc/influxdb/influxdb.conf match 8089

one gets use to typing port 8086 that looks the same but isn't the UDP default port.
 
is it possible to send the metrics to two different influxdb instances?
 
Yes it is possible, explained in the wiki: link

example status.cfg:

Code:
 graphite:
    server 10.0.0.5

 influxdb: influx1
    server 10.0.0.6
    port 8089

 influxdb: influx2
    server 10.0.0.7
    port 8090
 

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!