Merge "Add config option"

This commit is contained in:
Jenkins 2016-10-31 22:36:02 +00:00 committed by Gerrit Code Review
commit 0db9a7202e
3 changed files with 5 additions and 1 deletions

View File

@ -108,7 +108,7 @@ Statsd:
# 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
monasca_statsd_port : {args.monasca_statsd_port}
## The monasca_statsd flush period.
# monasca_statsd_interval : 20

View File

@ -109,6 +109,7 @@ All parameters require a '--' before the parameter such as '--verbose'. Run `mon
| detection_args | Some detection plugins can be passed arguments. This is a string that will be passed to the detection plugins. | "hostname=ping.me" |
| max_measurement_buffer_size | Integer value for the maximum number of measurements to buffer locally while unable to connect to the monasca-api. If the queue exceeds this value, measurements will be dropped in batches. A value of '-1' indicates no limit | 100000 |
| backlog_send_rate | Integer value of how many batches of buffered measurements to send each time the forwarder flushes data | 1000 |
| monasca_statsd_port | Integer value for statsd daemon port number | 8125 |
### Providing Arguments to Detection plugins
When running individual detection plugins you can specify arguments that augment the configuration created. In some instances the arguments just provide additional

View File

@ -280,6 +280,9 @@ def parse_arguments(parser):
help="Maximum number of buffered batches of measurements to send at"
" one time when connection to the monasca-api is restored",
default=1000)
parser.add_argument('--monasca_statsd_port',
help="Statsd daemon port number",
default=8125)
return parser.parse_args()