okustera_observability_overview (Data Source)
The okustera_observability_overview data source fetches real-time telemetry from Prometheus, APISIX Ingress Gateway, and the platform metrics pipeline. It allows Terraform configurations to inspect cluster health, resource capacity, running pod counts, and ingress request rates.
Example Usage
data "okustera_observability_overview" "cluster" {}
output "cluster_cpu_load" {
value = data.okustera_observability_overview.cluster.cluster_cpu_usage_percent
description = "Overall cluster CPU utilization percentage"
}
output "cluster_memory_used" {
value = "${data.okustera_observability_overview.cluster.cluster_memory_used_gb} GB / ${data.okustera_observability_overview.cluster.cluster_memory_total_gb} GB"
description = "Active cluster memory footprint"
}
output "ingress_traffic_rps" {
value = data.okustera_observability_overview.cluster.ingress_requests_per_sec
description = "Current ingress requests per second"
}
Schema
Read-Only Attributes
id(String) Data source identifier (observability-overview).cluster_cpu_usage_percent(Number) Aggregated cluster CPU utilization percentage across all worker nodes.cluster_memory_usage_percent(Number) Aggregated cluster memory utilization percentage.cluster_memory_used_gb(Number) Memory consumed in gigabytes.cluster_memory_total_gb(Number) Total cluster memory capacity in gigabytes.total_pods(Number) Total pods currently scheduled in the cluster.running_pods(Number) Pods currently in the healthyRunningstate.network_rx_mb(Number) Cluster-wide ingress network throughput in megabytes.network_tx_mb(Number) Cluster-wide egress network throughput in megabytes.ingress_requests_per_sec(Number) Real-time HTTP requests per second traversing the APISIX API Gateway.active_services_count(Number) Number of active platform and tenant services.