Merge "Support setting statsd metric aggregation interval"

This commit is contained in:
Zuul 2019-02-28 13:43:41 +00:00 committed by Gerrit Code Review
commit a4abb94996
3 changed files with 5 additions and 1 deletions

View File

@ -125,7 +125,7 @@ Statsd:
monasca_statsd_port : {args.monasca_statsd_port}
## The monasca_statsd flush period.
# monasca_statsd_interval : 20
monasca_statsd_interval : {args.monasca_statsd_interval}
# If you want to forward every packet received by the monasca_statsd server
# to another statsd server, uncomment these lines.

View File

@ -113,6 +113,7 @@ All parameters require a '--' before the parameter such as '--verbose'. Run `mon
| backlog_send_rate | Integer value of how many batches of buffered measurements to send each time the forwarder flushes data | 1000 |
| max_batch_size | Maximum batch size of measurements to write to monasca-api, 0 is no limit | 0 |
| monasca_statsd_port | Integer value for statsd daemon port number | 8125 |
| monasca_statsd_interval | Integer value for the statsd metric aggregation interval (seconds) | 20 |
#### A note around using monasca-agent with different versions of Keystone

View File

@ -428,6 +428,9 @@ def parse_arguments(parser):
parser.add_argument('--monasca_statsd_port',
help="Statsd daemon port number",
default=8125)
parser.add_argument('--monasca_statsd_interval',
help="Statsd metric aggregation interval (seconds)",
default=20)
parser.add_argument('--agent_service_name',
help="agent's systemd/sysv service name",
required=False,