• Stars
    star
    261
  • Rank 156,630 (Top 4 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 times 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 outputting 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)

More Repositories

1

prometheus

The Prometheus monitoring system and time series database.
Go
54,496
star
2

node_exporter

Exporter for machine metrics
Go
10,870
star
3

alertmanager

Prometheus Alertmanager
Go
6,540
star
4

client_golang

Prometheus instrumentation library for Go applications
Go
5,367
star
5

blackbox_exporter

Blackbox prober exporter
Go
4,532
star
6

client_python

Prometheus instrumentation library for Python applications
Python
3,914
star
7

jmx_exporter

A process for exposing JMX Beans via HTTP for Prometheus consumption
Java
3,005
star
8

pushgateway

Push acceptor for ephemeral and batch jobs.
Go
2,969
star
9

client_java

Prometheus instrumentation library for JVM applications
Java
2,166
star
10

mysqld_exporter

Exporter for MySQL server metrics
Go
2,097
star
11

snmp_exporter

SNMP Exporter for Prometheus
Go
1,634
star
12

statsd_exporter

StatsD to Prometheus metrics exporter
Go
912
star
13

cloudwatch_exporter

Metrics exporter for Amazon AWS CloudWatch
Java
892
star
14

procfs

procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.
Go
767
star
15

docs

Prometheus documentation: content and static site generator
SCSS
645
star
16

haproxy_exporter

Simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption
Go
615
star
17

promlens

PromLens – The query builder, analyzer, and explainer for PromQL
TypeScript
552
star
18

client_ruby

Prometheus instrumentation library for Ruby applications
Ruby
510
star
19

client_rust

Prometheus / OpenMetrics client library in Rust
Rust
462
star
20

consul_exporter

Exporter for Consul metrics
Go
436
star
21

prom2json

A tool to scrape a Prometheus client and dump the result as JSON.
Go
364
star
22

graphite_exporter

Server that accepts metrics via the Graphite protocol and exports them as Prometheus metrics
Go
350
star
23

promu

Prometheus Utility Tool
Go
268
star
24

exporter-toolkit

Utility package to build exporters
Go
261
star
25

common

Go libraries shared across Prometheus components and libraries.
Go
261
star
26

collectd_exporter

A server that accepts collectd stats via HTTP POST and exports them via HTTP for Prometheus consumption
Go
255
star
27

memcached_exporter

Exports metrics from memcached servers for consumption by Prometheus.
Go
182
star
28

test-infra

Prometheus E2E benchmarking tool
Go
153
star
29

compliance

A set of tests to check compliance with various Prometheus interfaces
Go
127
star
30

nagios_plugins

Nagios plugins for alerting on Prometheus query results
Shell
103
star
31

demo-site

Demo site auto-deployed with Ansible and Travis CI.
HTML
96
star
32

client_model

Data model artifacts for Prometheus.
Makefile
74
star
33

golang-builder

Prometheus Golang builder Docker images
Shell
69
star
34

codemirror-promql

PromQL support for the CodeMirror code editor
TypeScript
39
star
35

busybox

Prometheus Busybox Docker base images
Makefile
37
star
36

prometheus_api_client_ruby

A Ruby library for reading metrics stored on a Prometheus server
Ruby
36
star
37

talks

Track Prometheus talks
20
star
38

lezer-promql

A lezer-based PromQL grammar
JavaScript
12
star
39

proposals

Design documents for Prometheus Ecosystem
Makefile
9
star
40

host_exporter

See the "node_exporter" repository instead!
8
star
41

circleci

7
star
42

snmp_exporter_mibs

4
star
43

promci

GitHub Actions repository
4
star
44

kube-demo-site

Kubernetes Demo Site
Go
1
star
45

client_java-benchmarks

1
star
46

sigv4

A http.RoundTripper that will sign requests using Amazon's Signature Verification V4 signing procedure
1
star