forked from openstack/monasca-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent.yaml.template
114 lines (99 loc) · 4.83 KB
/
agent.yaml.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
Api:
# To configure Keystone correctly, a project-scoped token must be acquired.
# To accomplish this, the configuration must be set up with one of the
# following scenarios:
# Set username and password and you have a default project set in keystone.
# Set username, password and project id.
# Set username, password, project name and (domain id or domain name).
#
# Monitoring API URL: URL for the monitoring API, if undefined it will be pulled from the keystone service catalog
# Example: https://region-a.geo-1.monitoring.hpcloudsvc.com:8080/v2.0
url: {args.monasca_url}
# Keystone Username
username: {args.username}
# Keystone Password
password: "{args.password}"
# Keystone API URL: URL for the Keystone server to use
# Example: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v3/
keystone_url: {args.keystone_url}
# Project name to be used by this agent
project_name: {args.project_name}
# Project domain id to be used by this agent
project_domain_id: {args.project_domain_id}
# Project domain id to be used by this agent
project_domain_name: {args.project_domain_name}
# Project id to be used by this agent
project_id: {args.project_id}
# Set whether certificates are used for Keystone
# *******************************************************************************************
# **** CAUTION ****: The insecure flag should NOT be set to True in a production environment!
# *******************************************************************************************
# If insecure is set to False, a ca_file name must be set to authenticate with Keystone
insecure: {args.insecure}
# Name of the ca certs file
ca_file: {args.ca_file}
# The following 2 options are for handling buffering and reconnection to the monasca-api
# If you want the messages to be sent as fast as possible, set these two options to
# the same number. If you have a larger system with many agents, you may want to throttle
# the number of messages sent to the API by setting the backlog_send_rate to a lower number.
# Maximum number of messages to buffer when unable to communicate with the monasca-api
max_buffer_size: 1000
# Maximum number of messages to send at one time when communication with the monasca-api is restored
backlog_send_rate: 1000
# Publish extra metrics to the API by adding this number of 'amplifier' dimensions.
# For load testing purposes only; set to 0 for production use.
amplifier: {args.amplifier}
Main:
# Force the hostname to whatever you want.
hostname: {hostname}
# Optional dimensions to be sent with every metric from this node
# They should be in the format name: value
# Example of dimensions below
# dimensions:
# service: nova
# group: group_a
# environment: production
dimensions: {args.dimensions}
# Set the threshold for accepting points to allow anything
# with recent_point_threshold seconds
# Defaults to 30 seconds if no value is provided
#recent_point_threshold: 30
# time to wait between collection runs
check_freq: {args.check_frequency}
# Change port the Agent is listening to
# listen_port: 17123
# Allow non-local traffic to this Agent
# This is required when using this Agent as a proxy for other Agents
# that might not have an internet connection
# For more information, please see
# https://github.com/DataDog/dd-agent/wiki/Network-Traffic-and-Proxy-Configuration
# non_local_traffic: no
Statsd:
# ========================================================================== #
# Monasca Statsd configuration #
# ========================================================================== #
# Monasca Statsd is a small server that aggregates your custom app metrics.
# Make sure your client is sending to the same port.
monasca_statsd_port : 8125
## The monasca_statsd flush period.
# monasca_statsd_interval : 20
# If you want to forward every packet received by the monasca_statsd server
# to another statsd server, uncomment these lines.
# WARNING: Make sure that forwarded packets are regular statsd packets and not "monasca_statsd" packets,
# as your other statsd server might not be able to handle them.
# monasca_statsd_forward_host: address_of_own_statsd_server
# monasca_statsd_statsd_forward_port: 8125
Logging:
# ========================================================================== #
# Logging
# ========================================================================== #
log_level: {args.log_level}
collector_log_file: /var/log/monasca/agent/collector.log
forwarder_log_file: /var/log/monasca/agent/forwarder.log
statsd_log_file: /var/log/monasca/agent/statsd.log
# if syslog is enabled but a host and port are not set, a local domain socket
# connection will be attempted
#
# log_to_syslog: yes
# syslog_host:
# syslog_port: