Open kbelosevic opened 5 years ago
Any possible insights on this?
gluster_up
is one of the cluster level metrics which will be exported from one node of the cluster.
Is it not showing in the exporter of other nodes? I see there are three hosts in the cluster.
curl -Ss host-1:9189/metrics 2>&1 | grep gluster_up
curl -Ss host-2:9189/metrics 2>&1 | grep gluster_up
curl -Ss host-3:9189/metrics 2>&1 | grep gluster_up
Please confirm.
It is not exported on any of the nodes.
user@host-1:~$ curl localhost:9189/metrics 2>&1 | grep gluster_up
user@host-1:~$ curl localhost:9189/metrics 2>&1 | wc -l
203
user@host-2:~$ curl localhost:9189/metrics 2>&1 | grep gluster_up
user@host-2:~$ curl localhost:9189/metrics 2>&1 | wc -l
203
user@host-3:~$ curl localhost:9189/metrics 2>&1 | grep gluster_up
user@host-3:~$ curl localhost:9189/metrics 2>&1 | wc -l
213
Seeing exactly the same. did you find why? (i have even less metrics) curl -Ss localhost:9713/metrics 2>&1 | grep gluster |grep -v ^# | cut -d { -f1|sort|uniq gluster_brick_capacity_bytes_total gluster_brick_capacity_free_bytes gluster_brick_capacity_used_bytes gluster_brick_inodes_free gluster_brick_inodes_total gluster_brick_inodes_used gluster_peer_connected gluster_peer_count gluster_peer_status gluster_subvol_capacity_total_bytes gluster_subvol_capacity_used_bytes gluster_volume_brick_free_bytes gluster_volume_brick_free_inodes gluster_volume_brick_pid gluster_volume_brick_port gluster_volume_brick_status gluster_volume_brick_total_bytes gluster_volume_brick_total_inodes gluster_volume_status_brick_count
I get exactly the same reduced list of mertric as @belfo
Also nothing logged, even with log-level = "debug", log file is created but empty
RHEL 7.4 Glusterfs 3.8.4
Same issue for me . I have 2 clusters , one is production the other one is dev . Each cluster has 5 nodes including 1 arbiter. On thoses 10 nodes only one of them report the gluster_volume_up metric and many others . All of them were compiled the same way / same commands : Here's my version:
version : v0.3-dev.93.git3ebaacc go version: go1.14.4 go OS/arch: linux/amd64
DEVADM:/root#for SRV in DEV1 DEV2 DEV3 DEV4 ;do ssh $SRV "curl -Ss localhost:9713/metrics 2>&1 | grep gluster |grep -v ^# | cut -d { -f1|sort|uniq|wc -l" ;done 38 64 <<<< this one is reporting more metrics with the absolute same config ! 38 38 PROD:/root#for SRV in PRD1 PRD1 PRD3 PRD4 ;do ssh $SRV "curl -Ss localhost:9713/metrics 2>&1 | grep gluster |grep -v ^# | cut -d { -f1|sort|uniq|wc -l" ;done 38 38 38 38
edit : rhel 7.6 / uname -r => 3.10.0-957.21.3.el7.x86_64
Ok Its now working or me . You have to install the exporter on ALL your nodes even the arbiter . Because only 1 of them will export 'cluster-wide' metrics . The node in charge is selected from the peer list , this means even arbiters can be selected
Here's the number of metrics exported from each nodes on my 2 clusters PROD and DEV( one loop per cluster ): You will notice that only one node per cluster export more metrics
root@adminserver:/root#for SRV in SRVDEV1 SRVDEV2 SRVDEV3 SRVDEV4 ARBITERDEV1 ;do ssh $SRV "curl -Ss localhost:9713/metrics 2>&1 | grep gluster |grep -v ^# | cut -d { -f1|sort|uniq|wc -l" ;done 38 64 38 38 38 root@adminserver:/root#for SRV in SRVPROD1 SRVPROD2 SRVPROD3 SRVPROD4 ARBITERPRD1 ;do ssh $SRV "curl -Ss localhost:9713/metrics 2>&1 | grep gluster |grep -v ^# | cut -d { -f1|sort|uniq|wc -l" ;done 38 38 38 38 64
Not sure if it's also your case but i hope this will help
I have same problem . I solved it. see https://github.com/gluster/gluster-prometheus/issues/147#issuecomment-743010344
We are experiencing an issue on our servers where some metrics are not available i.e. "gluster_up". Same issue happens with using gd1 remote host, gd1 socket and gd2 host and in any combination with cache enabled, different TTLs and different caching functions.
Also, log is always empty.
So basically no metric is exported when some collectors are used for example:
Configuration: /etc/gluster-exporter/gluster-exporter.toml
/usr/lib/systemd/system/gluster-exporter.service
Only metrics which are shown:
Gluster info: