Ingesting Telegraf metrics
If you're using Telegraf 1.20.0+ to collect metrics, you can ingest them to Uptrace using the OpenTelemetry output plugin:
[[outputs.opentelemetry]]
service_address = "otlp.uptrace.dev:4317"
[outputs.opentelemetry.headers]
uptrace-dsn = "https://FIXME@api.uptrace.dev?grpc=4317"
## Additional OpenTelemetry resource attributes
# [outputs.opentelemetry.attributes]
# "service.name" = "demo"
[[outputs.opentelemetry]]
service_address = "localhost:14317"
## Optional TLS Config.
##
## Root certificates for verifying server certificates encoded in PEM format.
# tls_ca = "/etc/telegraf/ca.pem"
## The public and private key pairs for the client encoded in PEM format.
## May contain intermediate certificates.
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS, but skip TLS chain and host verification.
# insecure_skip_verify = false
## Send the specified TLS server name via SNI.
# tls_server_name = "foo.example.com"
[outputs.opentelemetry.headers]
uptrace-dsn = "http://project2_secret_token@localhost:14318?grpc=14317"
## Additional OpenTelemetry resource attributes
# [outputs.opentelemetry.attributes]
# "service.name" = "demo"