The Kubernetes apiserver validates and configures data for the api objects which include pods, services, replicationcontrollers, and others. The kube-apiserver services the REST operations and provides the frontend to the cluster shared state through which all other components interact.
By default, the kube-apiserver runs on port 6443 and exposes the metrics of /metrics in openMetric format. The Agent hits the endpoint with the kubernetes client and fetches the metrics automatically. Therefore. no extra configuration or detection logic is required.
Validate
Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.
Supported metrics
OpsRamp Metric | Metric Display Name | Unit |
---|---|---|
kube_api_go_threads Number of OS threads created | Go Threads | |
kube_api_authenticated_user_requests Counter of authenticated requests broken out by username | Authenticated User Requests | |
kube_api_audit_event_total Counter of audit events generated and sent to the audit backend | Audit Events | |
kube_api_rest_client_requests_total Number of HTTP requests, partitioned by status code, method, and host | Rest Client Requests | |
kube_api_inflight_requests Maximal number of currently used inflight request limit of this apiserver per request kind in last second | Inflight Requests | |
kube_api_goroutines Number of goroutines that currently exist | GoRoutines | |
kube_api_etcd_object_counts Number of stored objects at the time of last check split by kind | ETCD Object Count | |
kube_api_longrunning_gauge Gauge of all active long-running apiserver requests broken out by verb, group, version, resource, scope and component. Not all requests are tracked this way | Long Running Requests | |
kube_api_step_admission_duration_seconds_sum Admission sub-step latency histogram, broken out for each operation and API resource and step type (validate or admit) | Admission Sub-Step Latency in Seconds | seconds |
kube_apiserver_step_admission_duration_seconds_count Admission sub-step latency histogram, broken out for each operation and API resource and step type (validate or admit) | Admission Sub-Step Latency Count | count |
kube_api_step_admission_duration_seconds_summary_sum Admission sub-step latency summary, broken out for each operation and API resource and step type (validate or admit) | Admission Sub-Step Latency Summary In Seconds Sum | seconds |
kube_api_step_admission_duration_seconds_summary_count Admission sub-step latency summary, broken out for each operation and API resource and step type (validate or admit) | Admission Sub-Step Latency Summary Count | count |
kube_api_step_admission_duration_seconds_summary Admission sub-step latency summary, broken out for each operation and API resource and step type (validate or admit) | Admission Sub-Step Latency Summary In Seconds | seconds |
kube_api_controller_admission_duration_seconds_sum Admission controller latency histogram, identified by name and broken out for each operation and API resource and type (validate or admit) | Admission Controller Latency In Seconds | seconds |
kube_api_controller_admission_duration_seconds_count Admission controller latency histogram, identified by name and broken out for each operation and API resource and type (validate or admit) | Admission Controller Latency Count | count |
kube_api_http_requests Total number of HTTP requests made | HTTP Requests Rate | count |
kube_api_dropped_requests Accumulated number of requests dropped with Try-again-later response | Dropped Requests Rate | count |
kube_api_request_count Counter of apiserver requests broken out for each verb, group, version, resource, scope, component, client, and HTTP response contentType and code | Request Count Rate | count |
kube_api_service_registration_controller_depth Current depth of workqueue: APIServiceRegistrationController | Registration Controller Depth | count |