Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Commit

Permalink
Fix disk capacity prometheus metrics (#365)
Browse files Browse the repository at this point in the history
CAPACITY_STORAGE_TOTAL_DEFAULT_QUERY
UTILIZATION_STORAGE_USED_DEFAULT_QUERY
  • Loading branch information
mareklibra authored and rawagner committed Apr 16, 2019
1 parent 55596c4 commit 81fdec5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/constants/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export const STORAGE_PROMETHEUS_QUERIES = {
// from cluster
CAPACITY_STORAGE_TOTAL_BASE_CEPH_METRIC: 'ceph_cluster_total_bytes', // available with Ceph only
CAPACITY_STORAGE_TOTAL_QUERY: 'ceph_cluster_total_bytes',
CAPACITY_STORAGE_TOTAL_DEFAULT_QUERY: 'sum(node_filesystem_avail_bytes)',
CAPACITY_STORAGE_TOTAL_DEFAULT_QUERY: 'sum(node_filesystem_size_bytes)',
UTILIZATION_STORAGE_USED_QUERY: 'ceph_cluster_total_used_bytes[60m:5m]',
UTILIZATION_STORAGE_USED_DEFAULT_QUERY:
'(sum(node_filesystem_avail_bytes) - sum(node_filesystem_free_bytes))[60m:5m]',
UTILIZATION_STORAGE_USED_DEFAULT_QUERY: '(sum(node_filesystem_size_bytes) - sum(node_filesystem_free_bytes))[60m:5m]',
};

0 comments on commit 81fdec5

Please sign in to comment.