General |
|
|
cfg.Log |
none |
log.Logger instance to send logging messages. Default is to discard messages. If Debug is turned on and no instance is specified, messages will go to stderr. |
cfg.Debug |
false |
Turn on debugging messages. |
cfg.Interval |
"10s" |
Interval at which metrics are flushed and sent to Circonus. Set to "0s" to disable automatic flush (note, if disabled, cgm.Flush() must be called manually to send metrics to Circonus). |
cfg.ResetCounters |
"true" |
Reset counter metrics after each submission. Change to "false" to retain (and continue submitting) the last value. |
cfg.ResetGauges |
"true" |
Reset gauge metrics after each submission. Change to "false" to retain (and continue submitting) the last value. |
cfg.ResetHistograms |
"true" |
Reset histogram metrics after each submission. Change to "false" to retain (and continue submitting) the last value. |
cfg.ResetText |
"true" |
Reset text metrics after each submission. Change to "false" to retain (and continue submitting) the last value. |
API |
|
|
cfg.CheckManager.API.TokenKey |
"" |
Circonus API Token key |
cfg.CheckManager.API.TokenApp |
"circonus-gometrics" |
App associated with API token |
cfg.CheckManager.API.URL |
"https://api.circonus.com/v2" |
Circonus API URL |
cfg.CheckManager.API.TLSConfig |
nil |
Custom tls.Config to use when communicating with Circonus API |
cfg.CheckManager.API.CACert |
nil |
DEPRECATED - use TLSConfig *x509.CertPool with CA Cert to validate API endpoint using internal CA or self-signed certificates |
Check |
|
|
cfg.CheckManager.Check.ID |
"" |
Check ID of previously created check. (Note: check id not check bundle id.) |
cfg.CheckManager.Check.SubmissionURL |
"" |
Submission URL of previously created check. Metrics can also be sent to a local circonus-agent by using the agent's URL (e.g. http://127.0.0.1:2609/write/appid where appid is a unique identifier for the application which will prefix all metrics. Additionally, the circonus-agent can optionally listen for requests to /write on a unix socket - to leverage this feature, use a URL such as http+unix:///path/to/socket_file/write/appid ). |
cfg.CheckManager.Check.InstanceID |
hostname:program name |
An identifier for the 'group of metrics emitted by this process or service'. |
cfg.CheckManager.Check.TargetHost |
InstanceID |
Explicit setting of check.target . |
cfg.CheckManager.Check.DisplayName |
InstanceID |
Custom check.display_name . Shows in UI check list. |
cfg.CheckManager.Check.SearchTag |
service:program name |
Specific tag used to search for an existing check when neither SubmissionURL nor ID are provided. |
cfg.CheckManager.Check.Tags |
"" |
List (comma separated) of tags to add to check when it is being created. The SearchTag will be added to the list. |
cfg.CheckManager.Check.Secret |
random generated |
A secret to use for when creating an httptrap check. |
cfg.CheckManager.Check.MaxURLAge |
"5m" |
Maximum amount of time to retry a [failing] submission URL before refreshing it. |
cfg.CheckManager.Check.ForceMetricActivation |
"false" |
If a metric has been disabled via the UI the default behavior is to not re-activate the metric; this setting overrides the behavior and will re-activate the metric when it is encountered. |
Broker |
|
|
cfg.CheckManager.Broker.ID |
"" |
ID of a specific broker to use when creating a check. Default is to use a random enterprise broker or the public Circonus default broker. |
cfg.CheckManager.Broker.SelectTag |
"" |
Used to select a broker with the same tag(s). If more than one broker has the tag(s), one will be selected randomly from the resulting list. (e.g. could be used to select one from a list of brokers serving a specific colo/region. "dc:sfo", "loc:nyc,dc:nyc01", "zone:us-west") |
cfg.CheckManager.Broker.MaxResponseTime |
"500ms" |
Maximum amount time to wait for a broker connection test to be considered valid. (if latency is > the broker will be considered invalid and not available for selection.) |
cfg.CheckManager.Broker.TLSConfig |
nil |
Custom tls.Config to use when communicating with Circonus Broker |