monasca-agent/conf.d/prometheus.yaml.example
Michael James Hoppal dc634a73b8 Add prometheus client plugin
The plugin can be configured two ways:

Scrape metrics from a configured set of endpoints that were set up
via prometheus client libraries.

Attempt to autodetect running endpoints we should be monitoring in
a kubernetes environment by either looking at running services or
pods and evaluate their annotations to see if it is set for scraping.

Change-Id: I6d174daa705aff23fbfece9de759a1718a91050f
2017-05-23 13:02:50 -06:00

21 lines
662 B
Plaintext

# (C) Copyright 2017 Hewlett Packard Enterprise Development LP
init_config:
timeout: 3
auto_detect_endpoints: True
# Detection method can be either service or pod. Default is pod
detect_method: "pod"
instances:
# If configuring each metric_endpoint
- metric_endpoint: "http://127.0.0.1:8000"
# Dimensions to add to every metric coming out of the plugin
default_dimensions:
app: my_app
- metric_endpoint: "http://127.0.0.1:9000"
# Kubernetes labels to match on when using auto detection in a Kubernetes environment.
# There can only be one instance when auto_detection_endpoints is set to true
- kubernetes_labels: ['app']