Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

missing gluster_node_* metrics #53

Open
mozai opened this issue Jun 1, 2022 · 0 comments
Open

missing gluster_node_* metrics #53

mozai opened this issue Jun 1, 2022 · 0 comments

Comments

@mozai
Copy link

mozai commented Jun 1, 2022

Using release v0.2.5 (can't build from source, see my other bug report) and glusterfs 9.2

Readme.md says it will acquire node information via gluster volume status all detail --xml. I can launch this and I can see per-node metrics such as sizeTotal, sizeFree, inodesTotal, inodesFree. But when I launch the exporter and ask for /metrics, I do not see any mention of gluster_node_size_bytes_total, gluster_node_size_free_bytes, gluster_node_size_free_bytes, gluster_node_inodes_free

I launched with -log.level debug and there are no error messages... no message at all actually, after reporting it started and "GlusterFS Metrics Exporter v0.2.5", not even saying it received a request.

Output of gluster volume status all detail --xml

<cliOutput>
  <opRet>0</opRet>
  <opErrno>0</opErrno>
  <opErrstr/>
  <volStatus>
    <volumes>
      <volume>
        <volName>gameserver</volName>
        <nodeCount>2</nodeCount>
        <node>
          <hostname>[redacted-1]</hostname>
          <path>/opt/data/gluster/gameserver</path>
          <peerid>fb8dee35-0ea1-4d79-b733-e6edfb9f6b71</peerid>
          <status>1</status>
          <port>49154</port>
          <ports>
            <tcp>49154</tcp>
            <rdma>N/A</rdma>
          </ports>
          <pid>2468110</pid>
          <sizeTotal>3541511364608</sizeTotal>
          <sizeFree>2442654326784</sizeFree>
          <device>/dev/mapper/vol2-gluster</device>
          <blockSize>4096</blockSize>
          <mntOptions>rw,noexec,noatime,nodiratime</mntOptions>
          <fsName>ext4</fsName>
          <inodeSize>ext4</inodeSize>
          <inodesTotal>219611136</inodesTotal>
          <inodesFree>216624397</inodesFree>
        </node>
        <node>
          <hostname>[redacted-2]</hostname>
          <path>/opt/data/gluster/gameserver</path>
          <peerid>f938331e-e057-4cf7-a63a-b2121c3f87ba</peerid>
          <status>0</status>
          <port>N/A</port>
          <ports>
            <tcp>N/A</tcp>
            <rdma>N/A</rdma>
          </ports>
          <pid>-1</pid>
          <sizeTotal>3540553007104</sizeTotal>
          <sizeFree>2437145952256</sizeFree>
          <device>/dev/mapper/vol2-gluster</device>
          <blockSize>4096</blockSize>
          <mntOptions>rw,noexec,noatime,nodiratime</mntOptions>
          <fsName>ext4</fsName>
          <inodeSize>ext4</inodeSize>
          <inodesTotal>219611136</inodesTotal>
          <inodesFree>216624417</inodesFree>
        </node>
      </volume>
      <volume>
        <volName>iris</volName>
        <nodeCount>2</nodeCount>
        <node>
          <hostname>[redacted-1]</hostname>
          <path>/opt/data/gluster/iris</path>
          <peerid>fb8dee35-0ea1-4d79-b733-e6edfb9f6b71</peerid>
          <status>1</status>
          <port>49155</port>
          <ports>
            <tcp>49155</tcp>
            <rdma>N/A</rdma>
          </ports>
          <pid>2468118</pid>
          <sizeTotal>3541511364608</sizeTotal>
          <sizeFree>2442654326784</sizeFree>
          <device>/dev/mapper/vol2-gluster</device>
          <blockSize>4096</blockSize>
          <mntOptions>rw,noexec,noatime,nodiratime</mntOptions>
          <fsName>ext4</fsName>
          <inodeSize>ext4</inodeSize>
          <inodesTotal>219611136</inodesTotal>
          <inodesFree>216624397</inodesFree>
        </node>
        <node>
          <hostname>[redacted-2]</hostname>
          <path>/opt/data/gluster/iris</path>
          <peerid>f938331e-e057-4cf7-a63a-b2121c3f87ba</peerid>
          <status>0</status>
          <port>N/A</port>
          <ports>
            <tcp>N/A</tcp>
            <rdma>N/A</rdma>
          </ports>
          <pid>-1</pid>
          <sizeTotal>3540553007104</sizeTotal>
          <sizeFree>2437145952256</sizeFree>
          <device>/dev/mapper/vol2-gluster</device>
          <blockSize>4096</blockSize>
          <mntOptions>rw,noexec,noatime,nodiratime</mntOptions>
          <fsName>ext4</fsName>
          <inodeSize>ext4</inodeSize>
          <inodesTotal>219611136</inodesTotal>
          <inodesFree>216624417</inodesFree>
        </node>
      </volume>
    </volumes>
  </volStatus>
</cliOutput>

Output of curl -s http://localhost:9189/metrics |grep gluster_

# HELP gluster_brick_count Number of bricks at last query.
# TYPE gluster_brick_count gauge
gluster_brick_count{volume="gameserver"} 2
gluster_brick_count{volume="iris"} 2
# HELP gluster_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which gluster_exporter was built.
# TYPE gluster_exporter_build_info gauge
gluster_exporter_build_info{branch="master",goversion="go1.7.4",revision="0e16052c6a0399880d6c74ba5b94fe1ade283615",version="0.2.5"} 1
# HELP gluster_peers_connected Is peer connected to gluster cluster.
# TYPE gluster_peers_connected gauge
gluster_peers_connected 1
# HELP gluster_up Was the last query of Gluster successful.
# TYPE gluster_up gauge
gluster_up 1
# HELP gluster_volume_status Status code of requested volume.
# TYPE gluster_volume_status gauge
gluster_volume_status{volume="gameserver"} 1
gluster_volume_status{volume="iris"} 1
# HELP gluster_volumes_count How many volumes were up at the last query.
# TYPE gluster_volumes_count gauge
gluster_volumes_count 2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant