Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 4.12 KB

File metadata and controls

66 lines (52 loc) · 4.12 KB

Kubernetes Metrics Collector

Go Report Card Docker Pulls

VMware Aria Operations for Applications (formerly known as Tanzu Observability by Wavefront) is a high-performance streaming analytics platform for monitoring and optimizing your environment and applications.

The Kubernetes Metrics Collector is an agent that runs as a DaemonSet on each node within a Kubernetes cluster. It collects metrics and events about the cluster and sends them to the Operations for Applications service.

Features

  • Collects real-time data from all layers of a Kubernetes environment
  • Multiple sources of metrics providing comprehensive insight:
  • Auto discovery of pods and services based on annotation and configuration
  • Daemonset mode for high scalability with leader election for monitoring cluster level resources
  • Rich filtering support
  • Auto reload of configuration changes
  • Internal metrics for tracking the collector health and configuration

Installation

Refer to the installation instructions.

Configuration

The installation instructions use a default configuration suitable for most use cases. Refer to the documentation for details on all the configuration options.

Building

Build using make and the provided Makefile.

Commonly used make options include:

  • fmt to go fmt all your code
  • tests to run all the unit tests
  • build that creates a local executable
  • container that uses a docker container to build for consistency and reproducability

Troubleshooting Dropped Metrics

Formerly, we would see the following error in the Wavefront proxy logs when a metric has too many tags: Too many point tags. However, logic has been added to the Collector to automatically drop tags in priority order to ensure that metrics make it through to the proxy and no longer cause this error. This is the order of the logic used to drop tags:

  1. Tags are empty or are interpreted to be empty ("tag.key": "", "tag.key": "-", or "tag.key": "/").
  2. Explicitly excluded tags (from tagExclude config). Refer here for an example scenario.
  3. Tags are explicitly excluded ("namespace_id": "...", "host_id": "...", "pod_id": "...", or "hostname": "...").
  4. Tag values are duplicated, and the shorter key is kept ("tag.key": "same value" is kept instead of "tag.super.long.key": "same value").
  5. Extra tags are removed:
    1. Tag key matches alpha.* or beta.*, after keys have been sorted (e.g. "alpha.eksctl.io/nodegroup-name": "arm-group" or "beta.kubernetes.io/arch": "amd64").
    2. Tag key matches IaaS-specific tags, after keys have been sorted ("kubernetes.azure.com/agentpool": "agentpool", "topology.gke.io/zone": "us-central1-c", "eksctl.io/nodegroup-name": "arm-group", etc.).
    3. Tag key matches label.*, after keys have been sorted.

Contributing

Public contributions are always welcome. Please feel free to report issues or submit pull requests.