Agent for Monasca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

agent.yaml.template 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. Api:
  2. # To configure Keystone correctly, a project-scoped token must be acquired.
  3. # To accomplish this, the configuration must be set up with one of the
  4. # following scenarios:
  5. # Set username and password and you have a default project set in keystone.
  6. # Set username, password and project id.
  7. # Set username, password, project name and (domain id or domain name).
  8. #
  9. # Monitoring API URL (example: https://region-a.geo-1.monitoring.hpcloudsvc.com:8080/v2.0)
  10. # If undefined, it will be pulled from Keystone Service Catalog optionally filtering by
  11. # service_type ('monitoring' by default), endpoint_type ('publicURL' by default) and/or
  12. # region_name (none by default).
  13. url: {args.monasca_url}
  14. service_type: {args.service_type}
  15. endpoint_type: {args.endpoint_type}
  16. region_name: {args.region_name}
  17. # Keystone Username
  18. username: {args.username}
  19. # Keystone Password
  20. password: "{args.password}"
  21. # Keystone API URL: URL for the Keystone server to use
  22. # Example: https://region-a.geo-1.identity.hpcloudsvc.com:35357/v3/
  23. keystone_url: {args.keystone_url}
  24. # Domain id to be used to resolve username
  25. user_domain_id: {args.user_domain_id}
  26. # Domain name to be used to resolve username
  27. user_domain_name: {args.user_domain_name}
  28. # Project name to be used by this agent
  29. project_name: {args.project_name}
  30. # Project domain id to be used by this agent
  31. project_domain_id: {args.project_domain_id}
  32. # Project domain id to be used by this agent
  33. project_domain_name: {args.project_domain_name}
  34. # Project id to be used by this agent
  35. project_id: {args.project_id}
  36. # Set whether certificates are used for Keystone
  37. # *******************************************************************************************
  38. # **** CAUTION ****: The insecure flag should NOT be set to True in a production environment!
  39. # *******************************************************************************************
  40. # If insecure is set to False, a ca_file name must be set to authenticate with Keystone
  41. insecure: {args.insecure}
  42. # Name of the ca certs file
  43. ca_file: {args.ca_file}
  44. # The following 3 options are for handling buffering and reconnection to the monasca-api
  45. # If the agent forwarder is consuming too much memory, you may want to set
  46. # max_measurement_buffer_size to a lower value. If you have a larger system with many agents,
  47. # you may want to throttle the number of messages sent to the API by setting the
  48. # backlog_send_rate to a lower number.
  49. # DEPRECATED - please use max_measurement_buffer_size instead
  50. # Maximum number of messages (batches of measurements) to buffer when unable to communicate
  51. # with the monasca-api (-1 means no limit)
  52. max_buffer_size: {args.max_buffer_size}
  53. # Maximum number of measurements to buffer when unable to communicate with the monasca-api
  54. # (-1 means no limit)
  55. max_measurement_buffer_size: {args.max_measurement_buffer_size}
  56. # Maximum number of messages to send at one time when communication with the monasca-api is restored
  57. backlog_send_rate: {args.backlog_send_rate}
  58. # Maximum batch size of measurements to write to monasca-api, 0 is no limit
  59. max_batch_size: {args.max_batch_size}
  60. # Publish extra metrics to the API by adding this number of 'amplifier' dimensions.
  61. # For load testing purposes only; set to 0 for production use.
  62. amplifier: {args.amplifier}
  63. Main:
  64. # Force the hostname to whatever you want.
  65. hostname: {hostname}
  66. # Optional dimensions to be sent with every metric from this node
  67. # They should be in the format name: value
  68. # Example of dimensions below
  69. # dimensions:
  70. # service: nova
  71. # group: group_a
  72. # environment: production
  73. dimensions: {args.dimensions}
  74. # Set the threshold for accepting points to allow anything
  75. # with recent_point_threshold seconds
  76. # Defaults to 30 seconds if no value is provided
  77. #recent_point_threshold: 30
  78. # time to wait between collection runs
  79. check_freq: {args.check_frequency}
  80. # Number of Collector Threads to run
  81. num_collector_threads: {args.num_collector_threads}
  82. # Maximum number of collection cycles where all of the threads in the pool are
  83. # still running plugins before the collector will exit
  84. pool_full_max_retries: {args.pool_full_max_retries}
  85. # Threshold value for warning on collection time of each check (in seconds)
  86. sub_collection_warn: {args.plugin_collect_time_warn}
  87. # Collector restart interval (in hours)
  88. collector_restart_interval: 24
  89. # Change port the Agent is listening to
  90. # listen_port: 17123
  91. # Allow non-local traffic to this Agent
  92. # This is required when using this Agent as a proxy for other Agents
  93. # that might not have an internet connection
  94. # For more information, please see
  95. # https://github.com/DataDog/dd-agent/wiki/Network-Traffic-and-Proxy-Configuration
  96. # non_local_traffic: no
  97. # Submits all metrics to this tenant unless specified by the metric.
  98. # This is the equivalent of submitting delegated_tenant with all metrics, and when
  99. # not set will submit metrics to the default tenant of the provided credentials.
  100. # Used when deploying the agent to systems where the credentials of the monitored
  101. # tenant are not known.
  102. # global_delegated_tenant:
  103. Statsd:
  104. # ========================================================================== #
  105. # Monasca Statsd configuration #
  106. # ========================================================================== #
  107. # Monasca Statsd is a small server that aggregates your custom app metrics.
  108. # Make sure your client is sending to the same port.
  109. monasca_statsd_port : {args.monasca_statsd_port}
  110. ## The monasca_statsd flush period.
  111. monasca_statsd_interval : {args.monasca_statsd_interval}
  112. # If you want to forward every packet received by the monasca_statsd server
  113. # to another statsd server, uncomment these lines.
  114. # WARNING: Make sure that forwarded packets are regular statsd packets and not "monasca_statsd" packets,
  115. # as your other statsd server might not be able to handle them.
  116. # monasca_statsd_forward_host: address_of_own_statsd_server
  117. # monasca_statsd_statsd_forward_port: 8125
  118. Logging:
  119. # ========================================================================== #
  120. # Logging
  121. # ========================================================================== #
  122. log_level: {args.log_level}
  123. collector_log_file: {args.log_dir}/collector.log
  124. forwarder_log_file: {args.log_dir}/forwarder.log
  125. statsd_log_file: {args.log_dir}/statsd.log
  126. enable_logrotate: {args.enable_logrotate}
  127. # if syslog is enabled but a host and port are not set, a local domain socket
  128. # connection will be attempted
  129. #
  130. # log_to_syslog: yes
  131. # syslog_host:
  132. # syslog_port: