OpenTelemetry Bot d680729c09 [chore] Prepare release 0.90.0 (#29543) 1 år sedan
..
internal c88d7a9dce [chore][receiver/influxdb] create metadata (#21826) 1 år sedan
Makefile 471915355b Add Telegraf/InfluxDB receiver (#3323) 3 år sedan
README.md 562dc48d10 Link component issue badges to the respective issue page (#24642) 1 år sedan
config.go 5133f4ccd6 [chore] use license shortform (#22052) 1 år sedan
doc.go 5133f4ccd6 [chore] use license shortform (#22052) 1 år sedan
factory.go 96c78dce3a [chore] Add metrics around the DataPoints received by the InfluxDB receiver (#24044) 1 år sedan
go.mod d680729c09 [chore] Prepare release 0.90.0 (#29543) 1 år sedan
go.sum 40b485f08a Update core for v0.90.0 release (#29539) 1 år sedan
logger.go f4c44858b5 [all][chore] Moved from interface{} to any for all go code (#29072) 1 år sedan
metadata.yaml 8a4348cb00 [chore] add codeowners to metadata (#24404) 1 år sedan
receiver.go f4c44858b5 [all][chore] Moved from interface{} to any for all go code (#29072) 1 år sedan
receiver_test.go f4c44858b5 [all][chore] Moved from interface{} to any for all go code (#29072) 1 år sedan

README.md

InfluxDB Receiver

Status
Stability beta: metrics
Distributions contrib, observiq, sumo
Issues Open issues Closed issues
Code Owners @jacobmarble

This receiver accepts metrics data as InfluxDB Line Protocol.

Write endpoints exist at /write (InfluxDB 1.x compatibility) and /api/v2/write (InfluxDB 2.x compatibility). Write query parameters db/rp (InfluxDB 1.x) and org/bucket (InfluxDB 2.x) are ignored. Write query parameter precision is optional, defaults to ns.

Write responses:

  • 204: success, no further response needed (no content)
  • 400: permanent failure; check response body for details
  • 500: retryable error; check response body for details

Configuration

The following configuration options are supported:

  • endpoint (default = 0.0.0.0:8086) HTTP service endpoint for the line protocol receiver

The full list of settings exposed for this receiver are documented in config.go.

Example:

receivers:
  influxdb:
    endpoint: 0.0.0.0:8080

Definitions

InfluxDB is an open-source time series database.

Telegraf is an open-source metrics agent, similar to the OpenTelemetry Collector. Telegraf has hundreds of plugins.

Line protocol is a textual HTTP payload format used to move metrics between Telegraf agents and InfluxDB instances.

Schema

The InfluxDB->OpenTelemetry conversion schema and implementation are hosted at https://github.com/influxdata/influxdb-observability . This receiver automatically detects schema at parse time.

Example: Metrics - prometheus-v1

cpu_temp,foo=bar gauge=87.332
http_requests_total,method=post,code=200 counter=1027
http_requests_total,method=post,code=400 counter=3
http_request_duration_seconds 0.05=24054,0.1=33444,0.2=100392,0.5=129389,1=133988,sum=53423,count=144320
rpc_duration_seconds 0.01=3102,0.05=3272,0.5=4773,0.9=9001,0.99=76656,sum=1.7560473e+07,count=2693

Example: Metrics - prometheus-v2

prometheus,foo=bar cpu_temp=87.332
prometheus,method=post,code=200 http_requests_total=1027
prometheus,method=post,code=400 http_requests_total=3
prometheus,le=0.05 http_request_duration_seconds_bucket=24054
prometheus,le=0.1  http_request_duration_seconds_bucket=33444
prometheus,le=0.2  http_request_duration_seconds_bucket=100392
prometheus,le=0.5  http_request_duration_seconds_bucket=129389
prometheus,le=1    http_request_duration_seconds_bucket=133988
prometheus         http_request_duration_seconds_count=144320,http_request_duration_seconds_sum=53423
prometheus,quantile=0.01 rpc_duration_seconds=3102
prometheus,quantile=0.05 rpc_duration_seconds=3272
prometheus,quantile=0.5  rpc_duration_seconds=4773
prometheus,quantile=0.9  rpc_duration_seconds=9001
prometheus,quantile=0.99 rpc_duration_seconds=76656
prometheus               rpc_duration_seconds_count=1.7560473e+07,rpc_duration_seconds_sum=2693