This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from librato/chore/writeToLegacy
describe writeToLegacy option
- Loading branch information
Showing
1 changed file
with
43 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,64 +76,54 @@ pushed to your Librato account. | |
The Librato backend also supports the following optional configuration | ||
options under the top-level `librato` hash: | ||
|
||
* `snapTime`: Measurement timestamps are snapped to this interval | ||
(specified in seconds). This makes it easier to align | ||
measurements sent from multiple statsd instances on a | ||
single graph. Default is to use the flush interval time. | ||
|
||
* `countersAsGauges`: A boolean that controls whether StatsD counters | ||
are sent to Librato as gauge values (default) or | ||
as counters. When set to true (default), the | ||
backend will send the aggregate value of all | ||
increment/decrement operations during a flush | ||
period as a gauge measurement to Librato. | ||
|
||
When set to false, the backend will track the | ||
running value of all counters and submit the | ||
current absolute value to Librato as a | ||
counter. This will require some additional | ||
memory overhead and processing time to track the | ||
running value of all counters. | ||
|
||
* `skipInternalMetrics`: Boolean of whether to skip publishing of | ||
internal statsd metrics. This includes all | ||
metrics beginning with 'statsd.' and the | ||
metric numStats. Defaults to true, implying | ||
they are not sent. | ||
|
||
* `retryDelaySecs`: How long to wait before retrying a failed | ||
request, in seconds. | ||
|
||
* `postTimeoutSecs`: Max time for POST requests to Librato, in | ||
seconds. | ||
|
||
* `includeMetrics`: An array of JavaScript regular expressions. Only metrics | ||
that match any of the regular expressions will be sent to Librato. | ||
Defaults to an empty array. | ||
`snapTime` | ||
* Measurement timestamps are snapped to this interval (specified in seconds). This makes it easier to align measurements sent from multiple statsd instances on a single graph. Default is to use the flush interval time. | ||
|
||
```js | ||
{ | ||
includeMetrics: [/^my\.included\.metrics/, /^my.specifically.included.metric$/] | ||
} | ||
``` | ||
`countersAsGauges` | ||
* A boolean that controls whether StatsD counters are sent to Librato as gauge values (default) or as counters. When set to true (default), the backend will send the aggregate value of all increment/decrement operations during a flush period as a gauge measurement to Librato. | ||
|
||
* `excludeMetrics`: An array of JavaScript regular expressions. Metrics which match | ||
any of the regular expressions will NOT be sent to Librato. If includedMetrics | ||
is specified, then patterns will be matched against the resulting | ||
list of included metrics. | ||
Defaults to an empty array. | ||
When set to false, the backend will track the running value of all counters and submit the current absolute value to Librato as acounter. This will require some additional memory overhead and processing time to track the running value of all counters. | ||
|
||
Metrics which are sent to StatsDThis will exclude metrics sent to StatsD so that metrics which | ||
match the specified regex value | ||
`skipInternalMetrics` | ||
* Boolean of whether to skip publishing of internal statsd metrics. This includes all metrics beginning with 'statsd.' and the metric numStats. Defaults to true, implying they are not sent. | ||
|
||
```js | ||
{ | ||
excludeMetrics: [/^my\.excluded\.metrics/, /^my.specifically.excluded.metric$/] | ||
} | ||
``` | ||
`retryDelaySecs` | ||
* How long to wait before retrying a failed request, in seconds. | ||
|
||
`postTimeoutSecs` | ||
* Max time for POST requests to Librato, in seconds. | ||
|
||
* `globalPrefix`: A string to prepend to all measurement names sent to Librato. If set, a dot | ||
will automatically be added as separator between prefix and measurement name. | ||
`includeMetrics` | ||
* An array of JavaScript regular expressions. Only metrics that match any of the regular expressions will be sent to Librato. Defaults to an empty array. | ||
|
||
```js | ||
{ | ||
includeMetrics: [/^my\.included\.metrics/, /^my.specifically.included.metric$/] | ||
} | ||
``` | ||
|
||
`excludeMetrics` | ||
* An array of JavaScript regular expressions. Metrics which match any of the regular expressions will NOT be sent to Librato. If includedMetrics is specified, then patterns will be matched against the resulting list of included metrics. Defaults to an empty array. | ||
|
||
```js | ||
{ | ||
excludeMetrics: [/^my\.excluded\.metrics/, /^my.specifically.excluded.metric$/] | ||
} | ||
``` | ||
|
||
`globalPrefix` | ||
* A string to prepend to all measurement names sent to Librato. If set, a dot will automatically be added as separator between prefix and measurement name. | ||
|
||
`writeToLegacy` | ||
* Boolean of whether to send metrics with the legacy `source` dimension or with tags. Defaults to `false`. Intended for users with hybrid accounts that support both tags and sources to help with the migration to tags. Set the source in the StatsD config file: | ||
|
||
```js | ||
librato: { | ||
email: "[email protected]", | ||
token: "ca98e2bc23b1bfd0cbe9041e824f610491129bb952d52ca4ac22cf3eab5a1c32", | ||
source: "unique-per-statsd-instance" | ||
} | ||
``` | ||
|
||
## Reducing published data for inactive stats | ||
|
||
|