OpenTelemetry Bot d680729c09 [chore] Prepare release 0.90.0 (#29543) 1 gadu atpakaļ
..
internal a80edda186 [receiver/collectd] move collectdreceiver to beta (#28997) 1 gadu atpakaļ
testdata cd91fb4789 [chore][golden] Normal timestamps in golden metric files (#23002) 1 gadu atpakaļ
Makefile 01bc5ae772 Added CollectD JSON receiver (#44) 5 gadi atpakaļ
README.md a80edda186 [receiver/collectd] move collectdreceiver to beta (#28997) 1 gadu atpakaļ
collectd.go f4c44858b5 [all][chore] Moved from interface{} to any for all go code (#29072) 1 gadu atpakaļ
collectd_test.go 114441fd44 [receiver/collectd] remove opencensus (#28657) 1 gadu atpakaļ
config.go 812d799e78 [receiver/collectd] Move to use HTTPServerSettings with collectdreceiver (#28812) 1 gadu atpakaļ
config_test.go 812d799e78 [receiver/collectd] Move to use HTTPServerSettings with collectdreceiver (#28812) 1 gadu atpakaļ
doc.go 5133f4ccd6 [chore] use license shortform (#22052) 1 gadu atpakaļ
factory.go 812d799e78 [receiver/collectd] Move to use HTTPServerSettings with collectdreceiver (#28812) 1 gadu atpakaļ
factory_test.go 5133f4ccd6 [chore] use license shortform (#22052) 1 gadu atpakaļ
go.mod d680729c09 [chore] Prepare release 0.90.0 (#29543) 1 gadu atpakaļ
go.sum 40b485f08a Update core for v0.90.0 release (#29539) 1 gadu atpakaļ
metadata.yaml a80edda186 [receiver/collectd] move collectdreceiver to beta (#28997) 1 gadu atpakaļ
receiver.go 812d799e78 [receiver/collectd] Move to use HTTPServerSettings with collectdreceiver (#28812) 1 gadu atpakaļ
receiver_test.go 812d799e78 [receiver/collectd] Move to use HTTPServerSettings with collectdreceiver (#28812) 1 gadu atpakaļ

README.md

CollectD write_http plugin JSON receiver

Status
Stability beta: metrics
Distributions contrib, observiq, splunk, sumo
Issues Open issues Closed issues
Code Owners @atoulme

This receiver can receive data exported by the CollectD's write_http plugin. Only JSON format is supported. Authentication is not supported at this time.

This receiver was donated by SignalFx and ported from SignalFx's Gateway (https://github.com/signalfx/gateway/tree/master/protocol/collectd). As a result, this receiver supports some additional features that are technically not compatible with stock CollectD's write_http plugin. That said, in practice such incompatibilities should never surface. For example, this receiver supports extracting labels from different fields. Given a field value field[a=b, k=v], this receiver will extract a and b as label keys and, k and v as the respective label values.

Configuration

The configuration includes the Opentelemetry collector's server confighttp, which allows for a variety of settings. Only the most relevant ones will be discussed here, but all are available.

The following settings are required:

  • endpoint (default = localhost:8081): Endpoint exposed by this receiver to send data.

The following settings are optional:

  • attributes_prefix (no default): Used to add query parameters in key=value format to all metrics.
  • timeout (default = 30s): The request timeout for any docker daemon query.

Example:

receivers:
  collectd:
  collectd/one:
    attributes_prefix: "dap_"
    endpoint: "localhost:12345"
    timeout: "50s"

The full list of settings exposed for this receiver are documented here with detailed sample configurations here.