census-instrumentation / opencensus-service

OpenCensus service allows OpenCensus libraries to export to an exporter service rather than having to link vendor-specific exports.
Apache License 2.0
153 stars 63 forks source link

Official KairosDB exporter for metrics. #633

Closed rcosnita closed 1 year ago

rcosnita commented 4 years ago

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

pjanotti commented 4 years ago

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.

rcosnita commented 4 years ago

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

rcosnita commented 4 years ago

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.

dashpole commented 1 year ago

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