monasca-agent/conf.d/kubernetes_api.yaml.example
Michael James Hoppal 7ffae8e9fc Add Kubernetes API Plugin
Plugin that connects to the Kubernetes API to gather metrics
about the Kubernetes environment.

Taken from original review https://review.openstack.org/#/c/391559/

Change-Id: Ifff9285e9a2ac06d59383b986619ee62c59c712e
2017-04-24 14:23:35 -06:00

19 lines
831 B
Plaintext

# (C) Copyright 2017 Hewlett Packard Enterprise Development LP
init_config:
# Timeout on GET requests endpoints
connection_timeout: 3
instances:
# There is two options for connecting to the api. Either by passing in the host the api is running on and the port
# it is bound to or by deriving the api url from the kubernetes environment variables (if the agent is running in
# a kubernetes container. You must set one or the other.
- host: "127.0.0.1"
# Port of kubernetes master to connect to defaults to 8080
# kubernetes_api_port: 8080
# Derive kubernetes api url from kubernetes environmental variables.
# derive_api_url: True
# Set of kubernetes labels that we search for in the kubernetes metadata to set as dimensions
# kubernetes_labels: ['k8s-app', 'version']