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

Fix disk capacity prometheus metrics #365

Merged
merged 1 commit into from
Apr 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]',
};