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 Metric | Metric Display Name | Unit | Description |
---|---|---|---|
kube_api_go_threads | Go Threads | Number of OS threads created | |
kube_api_authenticated_user_requests | Authenticated User Requests | Counter of authenticated requests broken out by username | |
kube_api_audit_event_total | Audit Events | Counter of audit events generated and sent to the audit backend | |
kube_api_rest_client_requests_total | Rest Client Requests | Number of HTTP requests, partitioned by status code, method, and host | |
kube_api_inflight_requests | Inflight Requests | Maximal number of currently used inflight request limit of this apiserver per request kind in last second | |
kube_api_goroutines | GoRoutines | Number of goroutines that currently exist | |
kube_api_etcd_object_counts | ETCD Object Count | Number of stored objects at the time of last check split by kind | |
kube_api_longrunning_gauge | Long Running Requests | 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 | |
kube_api_step_admission_duration_seconds_sum | Admission Sub-Step Latency in Seconds | seconds | Admission sub-step latency histogram, broken out for each operation and API resource and step type (validate or admit) |
kube_apiserver_step_admission_duration_seconds_count | Admission Sub-Step Latency Count | count | Admission sub-step latency histogram, broken out for each operation and API resource and step type (validate or admit) |
kube_api_step_admission_duration_seconds_summary_sum | Admission Sub-Step Latency Summary In Seconds Sum | seconds | Admission sub-step latency summary, broken out for each operation and API resource and step type (validate or admit) |
kube_api_step_admission_duration_seconds_summary_count | Admission Sub-Step Latency Summary Count | count | Admission sub-step latency summary, broken out for each operation and API resource and step type (validate or admit) |
kube_api_step_admission_duration_seconds_summary | Admission Sub-Step Latency Summary In Seconds | seconds | Admission sub-step latency summary, broken out for each operation and API resource and step type (validate or admit) |
kube_api_controller_admission_duration_seconds_sum | Admission Controller Latency In Seconds | seconds | Admission controller latency histogram, identified by name and broken out for each operation and API resource and type (validate or admit) |
kube_api_controller_admission_duration_seconds_count | Admission Controller Latency Count | count | Admission controller latency histogram, identified by name and broken out for each operation and API resource and type (validate or admit) |
kube_api_http_requests | HTTP Requests Rate | count | Total number of HTTP requests made |
kube_api_dropped_requests | Dropped Requests Rate | count | Accumulated number of requests dropped with Try-again-later response |
kube_api_request_count | Request Count Rate | count | Counter of apiserver requests broken out for each verb, group, version, resource, scope, component, client, and HTTP response contentType and code |
kube_api_service_registration_controller_depth | Registration Controller Depth | count | Current depth of workqueue: APIServiceRegistrationController |