opencensus-service
opencensus-service copied to clipboard
Official KairosDB exporter for metrics.
It would be nice to have a KairosDB exporter which can be used explicitly in the agent. The exporter should be configured using a configuration similar to the one below:
exporters:
kairosdb:
endpoint: "http://127.0.0.1:8080/api/v1/datapoints"
log_level: debug
log_consumed_metrics: false
http:
max_connections: 10 # the maximum number of concurrent connections opened to the kairosdb rest api.
connection_timeout: 10 # the number of seconds allowed for one batch ingest call to kairosdb.
use_compression: true # enable or disables the http transport compression.
The metrics will be pushed in KairosDB using the Rest API supported by the Kairos TSDB: https://kairosdb.github.io/docs/build/html/restapi/AddDataPoints.html
Hi @rcosnita - new exporters should be created at the OpenTelemetry Collector Contrib repo. See https://github.com/open-telemetry/opentelemetry-collector-contrib#opentelemetry-collector-contrib for some info. Would you like to contribute to it? Per your description, you just need to translate from internal format to KairosDB format and use a HTTP client to send it. Check some of the exporters on the repo.
Hi @pjanotti, Thank you for the guidance. I will move the exporter in the new repository and open PR.
If I wrap up the code so that all the tests are passing would it be possible to have the PR accepted and merged in the code base? I will also contribute a variant of this to the opentelemetry.
This repository is now archived, and is succeeded by https://github.com/open-telemetry/opentelemetry-collector.