opencensus-service icon indicating copy to clipboard operation
opencensus-service copied to clipboard

Official KairosDB exporter for metrics.

Open rcosnita opened this issue 5 years ago • 3 comments

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

rcosnita avatar Feb 14 '20 00:02 rcosnita

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.

pjanotti avatar Feb 14 '20 01:02 pjanotti

Hi @pjanotti, Thank you for the guidance. I will move the exporter in the new repository and open PR.

rcosnita avatar Feb 14 '20 07:02 rcosnita

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.

rcosnita avatar Feb 22 '20 19:02 rcosnita

This repository is now archived, and is succeeded by https://github.com/open-telemetry/opentelemetry-collector.

dashpole avatar Nov 07 '22 15:11 dashpole