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 Name | Display Name | Description |
---|---|---|
microk8s_apiserver_authenticated_user_requests | MicroK8s Apiserver Authenticated User Requests | Counter of authenticated requests broken out by username. |
microk8s_apiserver_authenticated_user_requests_count | MicroK8s Apiserver Authenticated User Requests Count | Counter of authenticated requests broken out by username . |
microk8s_apiserver_rest_client_requests_total | MicroK8s Apiserver Rest Client Requests Total | Number of HTTP requests, partitioned by status code, method, and host. |
microk8s_apiserver_request_count | MicroK8s Apiserver Request Count | Counter 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_bucket | MicroK8s Apiserver Request Duration Seconds Bucket | The 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_count | MicroK8s Apiserver Rest Client Requests Total Count | Number of HTTP requests, partitioned by status code, method, and host. |
microk8s_apiserver_request_duration_seconds_sum | MicroK8s Apiserver Request Duration Seconds Sum | The response latency distribution in seconds for each verb, dry run value, group, version, resource, sub-resource, scope, and component. |
microk8s_apiserver_request_duration_seconds_count | MicroK8s Apiserver Request Duration Seconds Count | The 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.