Skip to content

Commit

Permalink
Updating manifest to include rules changes from openshift/telemeter#501
Browse files Browse the repository at this point in the history
… (#675)

* Updating manifest to include rules changes from openshift/telemeter#501

Signed-off-by: Moad Zardab <[email protected]>

* Updating manifest to include rules changes from openshift/telemeter#501

Signed-off-by: Moad Zardab <[email protected]>

---------

Signed-off-by: Moad Zardab <[email protected]>
  • Loading branch information
moadz authored Jan 30, 2024
1 parent fd524f2 commit 458160d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"subdir": "configuration"
}
},
"version": "73cf41804053c961ac776f5b2ee375ef67f23f64",
"version": "6b4f08ef692e55bcfaa5cc86500b84582a1d739a",
"sum": "QMVHXmQ6fFl5Cg9XZ/5KgUwwEqyHwA9PGUfhxRLWp+E="
},
{
Expand Down Expand Up @@ -293,8 +293,8 @@
"subdir": "jsonnet/telemeter"
}
},
"version": "e1f625aa31e46a84fb5d9f97c8224b9059e27d8a",
"sum": "fe88JuYCGr8pLQPuI2GxdDbrb+5U6ZwyNMQ+0fF8lgE="
"version": "2dd35e375ee91d523bcd82d857ec4ad1f4dc01bb",
"sum": "CPC+uyaU+4XBTDTpKQjd1AQHhxUKm9aO8HbNozO0FGM="
},
{
"source": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,27 @@ objects:
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: cluster:usage:workload:capacity_virtual_cpu_hours
- expr: |
group by(_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos"}) * 0
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: cluster:cpu_capacity_cores:_id
- expr: |
# worker ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_infra!="true",label_node_role_kubernetes_io_master!="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="true"}) or cluster:cpu_capacity_cores:_id)+
# worker non-ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_infra!="true",label_node_role_kubernetes_io_master!="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="false"}) / 2.0 or cluster:cpu_capacity_cores:_id)+
# worker non-amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_infra!="true",label_node_role_kubernetes_io_master!="true",label_kubernetes_io_arch!="amd64"}) or cluster:cpu_capacity_cores:_id)+
# schedulable control plane ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_master="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="true"}) * on(_id) group by(_id) (cluster_master_schedulable == 1) or cluster:cpu_capacity_cores:_id)+
# schedulable control plane non-ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_master="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="false"}) * on(_id) group by(_id) (cluster_master_schedulable == 1) / 2.0 or cluster:cpu_capacity_cores:_id)+
# schedulable control plane non-amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_master="true",label_kubernetes_io_arch!="amd64"}) * on(_id) group by(_id) (cluster_master_schedulable == 1) or cluster:cpu_capacity_cores:_id)
labels:
tenant_id: FB870BF3-9F3A-44FF-9BF7-D7A047A52F43
record: cluster:capacity_effective_cpu_cores
kind: ConfigMap
metadata:
creationTimestamp: null
Expand Down
21 changes: 21 additions & 0 deletions resources/services/observatorium-metrics-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2138,6 +2138,27 @@ objects:
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "cluster:usage:workload:capacity_virtual_cpu_hours"
- "expr": |
group by(_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos"}) * 0
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "cluster:cpu_capacity_cores:_id"
- "expr": |
# worker ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_infra!="true",label_node_role_kubernetes_io_master!="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="true"}) or cluster:cpu_capacity_cores:_id)+
# worker non-ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_infra!="true",label_node_role_kubernetes_io_master!="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="false"}) / 2.0 or cluster:cpu_capacity_cores:_id)+
# worker non-amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_infra!="true",label_node_role_kubernetes_io_master!="true",label_kubernetes_io_arch!="amd64"}) or cluster:cpu_capacity_cores:_id)+
# schedulable control plane ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_master="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="true"}) * on(_id) group by(_id) (cluster_master_schedulable == 1) or cluster:cpu_capacity_cores:_id)+
# schedulable control plane non-ht amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_master="true",label_kubernetes_io_arch="amd64",label_node_hyperthread_enabled="false"}) * on(_id) group by(_id) (cluster_master_schedulable == 1) / 2.0 or cluster:cpu_capacity_cores:_id)+
# schedulable control plane non-amd64
(sum by (_id) (node_role_os_version_machine:cpu_capacity_cores:sum{label_node_openshift_io_os_id="rhcos",label_node_role_kubernetes_io_master="true",label_kubernetes_io_arch!="amd64"}) * on(_id) group by(_id) (cluster_master_schedulable == 1) or cluster:cpu_capacity_cores:_id)
"labels":
"tenant_id": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"record": "cluster:capacity_effective_cpu_cores"
kind: ConfigMap
metadata:
annotations:
Expand Down

0 comments on commit 458160d

Please sign in to comment.