-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused timeout configuration option
- Loading branch information
Nick Fischer
committed
Jul 24, 2020
1 parent
7de4fcb
commit 88b71d1
Showing
11 changed files
with
77 additions
and
26 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 |
---|---|---|
@@ -1,22 +1,65 @@ | ||
# StatsD Receiver | ||
|
||
StatsD/DogStatsD receiver. | ||
StatsD receiver for ingesting StatsD messages into the OpenTelemetry Collector. | ||
|
||
## Sample Configuration | ||
## Configuration | ||
|
||
```yaml | ||
receivers: | ||
statsd: | ||
# endpoint: "localhost:8125" | ||
endpoint: "localhost:8125" # default | ||
``` | ||
# timeout: "50s" | ||
### endpoint | ||
The `"<host>:<port>"` to listen on. By default listen on `"localhost:8125"`. | ||
## Aggregation | ||
Currently the `statsdreceiver` is not providing any aggregation. There are ideas such as the [Metrics Transform Processor Proposal](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/332) and a [Views API](https://github.com/open-telemetry/opentelemetry-specification/issues/466) that intend to enable control over Metric aggregation in a processor. | ||
|
||
An alternative will be to implement some simple aggregation in this receiver. | ||
|
||
## Metrics | ||
|
||
General format is: | ||
|
||
`<name>:<value>|<type>|@<sample-rate>|#<tag1-key>:<tag1-value>,<tag2-k/v>` | ||
|
||
### Counter | ||
|
||
`<name>:<value>|c` | ||
|
||
### Gauge | ||
|
||
`<name>:<value>|g` | ||
|
||
### Timer/Histogram | ||
|
||
`<name>:<value>|<ms/h>|@<sample-rate>` | ||
|
||
## Testing | ||
|
||
### Full sample config | ||
|
||
```yaml | ||
receivers: | ||
statsd: | ||
endpoint: "localhost:8125" # default | ||
exporters: | ||
logging: | ||
file: | ||
path: ./test.json | ||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [statsd] | ||
exporters: [logging] | ||
``` | ||
exporters: [file] | ||
``` | ||
|
||
### Local | ||
|
||
A simple way to send a metric to `localhost:8125`: | ||
|
||
`echo "test.metric:1|c" | nc -w 1 -u localhost 8125` |
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
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
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
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
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
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
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
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
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
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