Skip to content

Commit

Permalink
Added glusterfs_ prefix to all the metrics (#36)
Browse files Browse the repository at this point in the history
[Breaking Change]

Fixes: #35
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk authored Sep 22, 2022
1 parent e0eeaba commit 910492f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gluster-metrics-exporter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ module GlusterMetricsExporter
end
end

# Add Namespace so that each metrics prefixed with glusterfs_
Crometheus.default_registry.namespace = "glusterfs"

# Add handlers. First one will collect all the
# metrics and the second one will export the
# Prometheus metrics
Expand Down

0 comments on commit 910492f

Please sign in to comment.