Coder Social home page Coder Social logo

isabella232 / influxdb_exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prometheus/influxdb_exporter

0.0 0.0 0.0 3.46 MB

A server that accepts InfluxDB metrics via the HTTP API and exports them via HTTP for Prometheus consumption

License: Apache License 2.0

Makefile 5.54% Go 91.94% Dockerfile 2.52%

influxdb_exporter's Introduction

InfluxDB Exporter Build Status

CircleCI Docker Repository on Quay Docker Pulls

An exporter for metrics in the InfluxDB format used since 0.9.0. It collects metrics in the line protocol via a HTTP API, transforms them and exposes them for consumption by Prometheus.

This exporter supports float, int and boolean fields. Tags are converted to Prometheus labels.

The exporter also listens on a UDP socket, port 9122 by default, as well as the v2 HTTP endpoints, where it exposes InfluxDB metrics using /metrics endpoint and exposes exporter's self metrics using /metrics/exporter endpoint.

Timestamps

By default metrics exposed without original timestamps like this:

http_requests_total{method="post",code="200"} 1027
http_requests_total{method="post",code="400"}    3

If you want to add original timestamps to exposed metrics, please use flag --timestamps and metrics will looks like:

http_requests_total{method="post",code="200"} 1027 1395066363000
http_requests_total{method="post",code="400"}    3 1395066363000

When querying, this means that the sample is attributed to the time it was submitted to the exporter, not the time Prometheus scraped it. However, if the metric was submitted multiple time in between exporter scrapes, only the last value and timestamp will be stored.

Alternatives

If you are sending data to InfluxDB in Graphite or Collectd formats, see the graphite_exporter and collectd_exporter respectively.

This exporter is useful for exporting metrics from existing collectd setups, as well as for metrics which are not covered by the core Prometheus exporters such as the Node Exporter.

The exporter acts like an InfluxDB server, it does not connect to one. For metrics concerning the InfluxDB server, use the metrics endpoint built into InfluxDB.

If you are already using Telegraf, it can serve the same purpose as this exporter with the outputs.prometheus_client plugin.

For more information on integrating between the Prometheus and InfluxDB ecosystems, see the influxdata integration page.

Example usage with Telegraf

The influxdb_exporter appears as a normal InfluxDB server. To use with Telegraf for example, put the following in your telegraf.conf:

[[outputs.influxdb]]
  urls = ["http://localhost:9122"]

Or if you want to use UDP instead:

[[outputs.influxdb]]
  urls = ["udp://localhost:9122"]

Note that Telegraf already supports outputing Prometheus metrics over HTTP via outputs.prometheus_client, which avoids having to also run the influxdb_exporter.

V2 Support

InfluxDB V2 Support is currently in progress. Supported features include:

  • Querying for a null result
  • Writing data to the exporter - ignores auth and metadata components (org, buckets)

influxdb_exporter's People

Contributors

beorn7 avatar bharaththiruveedula-zz avatar brian-brazil avatar carlpett avatar danquack avatar grobie avatar ing8ar avatar matthiasr avatar prombot avatar roidelapluie avatar sdurrheimer avatar simonpasquier avatar superq avatar vidister avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.