Skip to content

Commit

Permalink
Remove dom_ prefix on some metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
TSnake41 committed Aug 21, 2023
1 parent 6f72514 commit dcd2575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion plugins/xcp-metrics-plugin-xen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ async fn main() {
}
}


fn generate_mappings() -> HashMap<Box<str>, CustomMapping> {
hashmap! {
"cpu-cstate".into() => CustomMapping {
Expand Down
4 changes: 2 additions & 2 deletions plugins/xcp-metrics-plugin-xen/src/metrics/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl XenMetric for VCpuTime {
self.latest_instant = Instant::now();

Some((
"dom_vcpu".into(),
"vcpu".into(),
SimpleMetricFamily {
help: "vCPU usages".into(),
unit: "usage".into(),
Expand Down Expand Up @@ -122,7 +122,7 @@ impl XenMetric for DomainMemory {
.collect();

Some((
"dom_memory".into(),
"memory".into(),
SimpleMetricFamily {
help: "Memory currently allocated to VM".into(),
metric_type: MetricType::Gauge,
Expand Down

0 comments on commit dcd2575

Please sign in to comment.