Skip to content

Commit 17d0394

Browse files
utkuozdemirsmira
authored andcommitted
feat: add more cluster and machine metrics
Add metrics for enabled cluster features and for various machine properties: ```text # HELP omni_cluster_features Number of clusters with specific features enabled. # TYPE omni_cluster_features gauge omni_cluster_features{feature="disk_encryption"} 1 omni_cluster_features{feature="embedded_discovery_service"} 0 omni_cluster_features{feature="workload_proxy"} 1 # HELP omni_machine_platforms Number of machines in the instance by platform. # TYPE omni_machine_platforms gauge omni_machine_platforms{platform="akamai"} 0 omni_machine_platforms{platform="aws"} 0 omni_machine_platforms{platform="azure"} 0 omni_machine_platforms{platform="cloudstack"} 0 omni_machine_platforms{platform="digital-ocean"} 0 omni_machine_platforms{platform="equinixMetal"} 0 omni_machine_platforms{platform="exoscale"} 0 omni_machine_platforms{platform="gcp"} 0 omni_machine_platforms{platform="hcloud"} 0 omni_machine_platforms{platform="metal"} 10 omni_machine_platforms{platform="nocloud"} 0 omni_machine_platforms{platform="opennebula"} 0 omni_machine_platforms{platform="openstack"} 0 omni_machine_platforms{platform="oracle"} 0 omni_machine_platforms{platform="scaleway"} 0 omni_machine_platforms{platform="upcloud"} 0 omni_machine_platforms{platform="vmware"} 0 omni_machine_platforms{platform="vultr"} 0 # HELP omni_machine_secure_boot_status Number of machines in the instance by secure boot status. # TYPE omni_machine_secure_boot_status gauge omni_machine_secure_boot_status{enabled="false"} 10 omni_machine_secure_boot_status{enabled="true"} 0 omni_machine_secure_boot_status{enabled="unknown"} 0 # HELP omni_machine_uki_status Number of machines in the instance by UKI (Unified Kernel Image) status. # TYPE omni_machine_uki_status gauge omni_machine_uki_status{booted_with_uki="false"} 0 omni_machine_uki_status{booted_with_uki="true"} 10 omni_machine_uki_status{booted_with_uki="unknown"} 0 ``` Signed-off-by: Utku Ozdemir <[email protected]>
1 parent 442e0a2 commit 17d0394

File tree

14 files changed

+1493
-291
lines changed

14 files changed

+1493
-291
lines changed

client/api/omni/specs/omni.pb.go

Lines changed: 336 additions & 240 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/api/omni/specs/omni.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,6 +1227,14 @@ message MachineStatusMetricsSpec {
12271227
uint32 pending_machines_count = 4;
12281228

12291229
map<string, int32> versions_map = 5;
1230+
map<string, uint32> platforms = 6;
1231+
map<string, uint32> secure_boot_status = 7;
1232+
map<string, uint32> uki_status = 8;
1233+
}
1234+
1235+
// ClusterMetricsSpec contains metrics about the clusters in the Omni instance.
1236+
message ClusterMetricsSpec {
1237+
map<string, uint32> features = 3;
12301238
}
12311239

12321240
// ClusterStatusMetricsSpec provides aggregated state of the number of clusters in not ready phase.

0 commit comments

Comments
 (0)