Introduction

The Microk8s apiserver validates and configures data for the api objects which include pods, services, replication controllers, and others. The API server services the REST operations and provides the frontend to the cluster shared state through which all other components interact.

Starting with release 1.21, daemon-apiserver was consolidated into daemon-kubelite.

The apiserver daemon is started using the arguments in ${SNAP_DATA}/args/kube-apiserver. The service configuration is described in full in the upstream kube-apiserver documentation .

Global Template

Assign following template to Microk8s Master or Microk8s integration resource under Infrastructure > Resources > Microk8s page.

Collector Type: Agent

Category: Application Monitors

G2 Monitor Name: Agent G2 - Linux - MicroK8s Kubelite

Global Template Name: Agent G2 - Linux - MicroK8s Kubelite

Collected Metrics

Metric NameDisplay NameDescription
microk8s_apiserver_authenticated_user_requestsMicroK8s Apiserver Authenticated User RequestsCounter of authenticated requests broken out by username.
microk8s_apiserver_authenticated_user_requests_countMicroK8s Apiserver Authenticated User Requests CountCounter of authenticated requests broken out by username .
microk8s_apiserver_rest_client_requests_totalMicroK8s Apiserver Rest Client Requests TotalNumber of HTTP requests, partitioned by status code, method, and host.
microk8s_apiserver_request_countMicroK8s Apiserver Request CountCounter of API server requests broken out for each verb, group, version, resource, scope, component, client, and HTTP response contentType and code.
microk8s_apiserver_request_duration_seconds_bucketMicroK8s Apiserver Request Duration Seconds BucketThe Response latency distribution in seconds for each verb, dry run value, group, version, resource, sub-resource, scope, and component.
microk8s_apiserver_rest_client_requests_total_countMicroK8s Apiserver Rest Client Requests Total CountNumber of HTTP requests, partitioned by status code, method, and host.
microk8s_apiserver_request_duration_seconds_sumMicroK8s Apiserver Request Duration Seconds SumThe response latency distribution in seconds for each verb, dry run value, group, version, resource, sub-resource, scope, and component.
microk8s_apiserver_request_duration_seconds_countMicroK8s Apiserver Request Duration Seconds CountThe response latency distribution in seconds for each verb, dry run value, group, version, resource, sub-resource, scope, and component count.

Validate

Navigate to Infrastructure > Resources tab to check if your resources are onboarded and the metrics are collected.