Skip to content

Commit e98a151

Browse files
authored
telemeter bump and make generate (#706)
1 parent 6e20a24 commit e98a151

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Diff for: jsonnetfile.lock.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@
293293
"subdir": "jsonnet/telemeter"
294294
}
295295
},
296-
"version": "0453f452b7ca677e3be10faa95bea714733b4830",
297-
"sum": "0m1kvO0SH4YoldGek69nhBGMTPxYz3gYcyNhfrymAOE="
296+
"version": "700802fe29aba4ed602309f0c68222c4bedb08f5",
297+
"sum": "53k2pqb4mjABCulTT/H5d7pQDiemIOO23gzfon7g9K4="
298298
},
299299
{
300300
"source": {

Diff for: resources/services/app-sre-stage-01/rhobs/telemeter/observatorium-metrics-ruler-telemeter-template.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ objects:
115115
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
116116
record: acm_top500_mcs:acm_managed_cluster_info
117117
- expr: |
118-
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])))
118+
max by(_id) (sum_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
119119
labels:
120120
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
121121
record: cluster:usage:workload:capacity_physical_cpu_hours
122122
- expr: |
123-
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]))
123+
max by(_id) (count_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
124124
labels:
125125
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
126126
record: cluster:usage:workload:capacity_physical_instance_hours
127127
- expr: |
128-
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]))
128+
sum by(_id) (sum_over_time(cluster:capacity_cpu_cores:sum{label_node_role_kubernetes_io = ''}[1h:5m])) / scalar(steps:count1h)
129129
labels:
130130
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
131131
record: cluster:usage:workload:capacity_virtual_cpu_hours
@@ -162,7 +162,7 @@ objects:
162162
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
163163
record: acm_capacity_effective_cpu_cores
164164
- expr: |
165-
max by(_id)(sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(count_over_time(vector(1)[1h:5m]))
165+
max by(_id) (sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(steps:count1h)
166166
labels:
167167
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
168168
record: hostedcluster:hypershift_cluster_vcpus:vcpu_hours

Diff for: resources/services/observatorium-metrics-template.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2131,17 +2131,17 @@ objects:
21312131
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
21322132
"record": "acm_top500_mcs:acm_managed_cluster_info"
21332133
- "expr": |
2134-
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])))
2134+
max by(_id) (sum_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
21352135
"labels":
21362136
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
21372137
"record": "cluster:usage:workload:capacity_physical_cpu_hours"
21382138
- "expr": |
2139-
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]))
2139+
max by(_id) (count_over_time(cluster:usage:workload:capacity_physical_cpu_cores:max:5m[1h:5m])) / scalar(steps:count1h)
21402140
"labels":
21412141
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
21422142
"record": "cluster:usage:workload:capacity_physical_instance_hours"
21432143
- "expr": |
2144-
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]))
2144+
sum by(_id) (sum_over_time(cluster:capacity_cpu_cores:sum{label_node_role_kubernetes_io = ''}[1h:5m])) / scalar(steps:count1h)
21452145
"labels":
21462146
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
21472147
"record": "cluster:usage:workload:capacity_virtual_cpu_hours"
@@ -2178,7 +2178,7 @@ objects:
21782178
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
21792179
"record": "acm_capacity_effective_cpu_cores"
21802180
- "expr": |
2181-
max by(_id)(sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(count_over_time(vector(1)[1h:5m]))
2181+
max by(_id) (sum_over_time(hostedcluster:hypershift_cluster_vcpus:max[1h:5m])) / scalar(steps:count1h)
21822182
"labels":
21832183
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
21842184
"record": "hostedcluster:hypershift_cluster_vcpus:vcpu_hours"

0 commit comments

Comments
 (0)