Skip to content

Commit

Permalink
telemeter bump and make generate (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgough authored Nov 14, 2024
1 parent 6e20a24 commit e98a151
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@
"subdir": "jsonnet/telemeter"
}
},
"version": "0453f452b7ca677e3be10faa95bea714733b4830",
"sum": "0m1kvO0SH4YoldGek69nhBGMTPxYz3gYcyNhfrymAOE="
"version": "700802fe29aba4ed602309f0c68222c4bedb08f5",
"sum": "53k2pqb4mjABCulTT/H5d7pQDiemIOO23gzfon7g9K4="
},
{
"source": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ objects:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: acm_top500_mcs:acm_managed_cluster_info
- expr: |
max by(_id) (sum_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m]) / scalar(count_over_time(vector(1)[1h:5m])))
max by(_id) (sum_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: cluster:usage:workload:capacity_physical_cpu_hours
- expr: |
max by(_id) (count_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(count_over_time(vector(1)[1h:5m]))
max by(_id) (count_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: cluster:usage:workload:capacity_physical_instance_hours
- expr: |
sum(sum_over_time(cluster:capacity_cpu_cores:sum{label_node_role_kubernetes_io = ''}[1h:5m])) by (_id) / scalar(count_over_time(vector(1)[1h:5m]))
sum by(_id) (sum_over_time(cluster:capacity_cpu_cores:sum{label_node_role_kubernetes_io = ''}[1h:5m])) / scalar(steps:count1h)
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: cluster:usage:workload:capacity_virtual_cpu_hours
Expand Down Expand Up @@ -162,7 +162,7 @@ objects:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: acm_capacity_effective_cpu_cores
- expr: |
max by(_id)(sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(count_over_time(vector(1)[1h:5m]))
max by(_id) (sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(steps:count1h)
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: hostedcluster:hypershift_cluster_vcpus:vcpu_hours
Expand Down
8 changes: 4 additions & 4 deletions resources/services/observatorium-metrics-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2131,17 +2131,17 @@ objects:
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "acm_top500_mcs:acm_managed_cluster_info"
- "expr": |
max by(_id) (sum_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m]) / scalar(count_over_time(vector(1)[1h:5m])))
max by(_id) (sum_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "cluster:usage:workload:capacity_physical_cpu_hours"
- "expr": |
max by(_id) (count_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(count_over_time(vector(1)[1h:5m]))
max by(_id) (count_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "cluster:usage:workload:capacity_physical_instance_hours"
- "expr": |
sum(sum_over_time(cluster:capacity_cpu_cores:sum{label_node_role_kubernetes_io = ''}[1h:5m])) by (_id) / scalar(count_over_time(vector(1)[1h:5m]))
sum by(_id) (sum_over_time(cluster:capacity_cpu_cores:sum{label_node_role_kubernetes_io = ''}[1h:5m])) / scalar(steps:count1h)
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "cluster:usage:workload:capacity_virtual_cpu_hours"
Expand Down Expand Up @@ -2178,7 +2178,7 @@ objects:
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "acm_capacity_effective_cpu_cores"
- "expr": |
max by(_id)(sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(count_over_time(vector(1)[1h:5m]))
max by(_id) (sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(steps:count1h)
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "hostedcluster:hypershift_cluster_vcpus:vcpu_hours"
Expand Down

0 comments on commit e98a151

Please sign in to comment.