-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[manila] add metrics for limes capacity plugin
we move the function definition away from limes and take ownership in manila additionally we allow 'hxm_backups' snapshot policy and use the new harvester metrics
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
groups: | ||
- name: manila-limes | ||
rules: | ||
# building a heuristic to tell how much space is consumed by backend (non-manila) snapmirror replication. | ||
# we look at the source (volume_type is not dp) | ||
# we only look at volumes that have dedicated snapshot policy: case insensitive hxm_backups or ec2_backups | ||
# we require share type and project id to be able to associate to valid billing targets. | ||
- record: netapp_snapmirror_total_bytes | ||
expr: | | ||
netapp_volume_total_bytes:pre * on (app, host, svm, volume) | ||
group_left(snapshot_policy, state) netapp_volume_labels{ | ||
project_id!="", | ||
share_type!="", | ||
snapshot_policy=~"(?i:(hxm|ec2))_(?i:(backups))", | ||
state="online", | ||
volume_type!="dp"} | ||
|
||
- record: netapp_snapmirror_used_bytes | ||
expr: | | ||
netapp_volume_used_bytes:pre * on (app, host, svm, volume) | ||
group_left(snapshot_policy, state) netapp_volume_labels{ | ||
project_id!="", | ||
share_type!="", | ||
snapshot_policy=~"(?i:(hxm|ec2))_(?i:(backups))", | ||
state="online", | ||
volume_type!="dp"} | ||
|