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’s 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.

Metrics

OpsRamp MetricMetric Display NameUnit
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 Secondsseconds
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 Countcount
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 Sumseconds
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 Countcount
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 Secondsseconds
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 Secondsseconds
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 Countcount
kube_api_http_requests

Total number of HTTP requests made
HTTP Requests Ratecount
kube_api_dropped_requests

Accumulated number of requests dropped with Try-again-later response
Dropped Requests Ratecount
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 Ratecount
kube_api_service_registration_controller_depth

Current depth of workqueue: APIServiceRegistrationController
Registration Controller Depthcount