Introduction
Metrics server aggregates the usage of data over the cluster of a resource.
Metrics server uses summary API exposed by kubelet that runs on each node of cluster to collect metrics.
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 - Kubernetes Metric Server Monitor - v2
Global Template Name: Agent G2 - Linux - Kubernetes Metric Server - v2
Collected Metrics
Metric Name | Display Name | Description | Units |
---|---|---|---|
metrics_server.go_gc_duration_seconds_sum | Go GC Duration Seconds Sum | A summary of the GC invocation durations. | seconds |
metrics_server.authenticated_user_requests | Authenticated User Requests | Counter of authenticated requests broken out by username. | |
metrics_server.go_goroutines | Go Goroutines | Number of goroutines that currently exist. | |
metrics_server.manager_tick_duration_sum | Manager Tick Duration Sum | The total time spent collecting and storing metrics in seconds. | seconds |
metrics_server.scraper_duration_count | Scraper Duration Count | Time spent scraping sources in seconds. | seconds |
metrics_server.scraper_duration_sum | Scraper Duration Sum | A summary of the GC invocation durations. | seconds |
metrics_server.scraper_last_time | Scraper Last Time | Last time metrics-server performed a scrape since unix epoch in seconds. | seconds |
metrics_server.go_gc_duration_seconds_quantile | Go GC Duration Seconds Quantile | A summary of the GC invocation durations. | seconds |
metrics_server.kubelet_summary_request_duration_sum | Kubelet Summary Request Duration Sum | The Kubelet summary request latencies in seconds. | seconds |
metrics_server.kubelet_summary_scrapes_total | Kubelet Summary Scrapes Total | Total number of attempted Summary API scrapes done by Metrics Server. | |
metrics_server.manager_tick_duration_count | Manager Tick Duration Count | The total time spent collecting and storing metrics in seconds. | seconds |
metrics_server.process_max_fds | Process Max Fds | Maximum number of open file descriptors. | |
metrics_server.process_open_fds | Process Open Fds | Number of open file descriptors. | |
metrics_server.go_gc_duration_seconds_count | Go GC Duration Seconds Count | A summary of the GC invocation durations. | |
metrics_server.kubelet_summary_request_duration_count | Kubelet Summary Request Duration Count | The Kubelet summary request latencies in seconds. | |
metrics_server.process_cpu_seconds_total | Process Cpu Seconds Total | Total user and system CPU time spent in seconds. |
Validate
Navigate to Infrastructure > Resources tab to check if your resources are onboarded and the metrics are collected.