Skip to content
FluxtailDocs

Prometheus

Fluxtail converts accepted Prometheus samples into log events. It does not scrape targets or provide native metric-series storage.

Create a Prometheus text receiver and a receiver-bound token. Use its exact URL:

Terminal window
export FLUXTAIL_RECEIVER_URL='https://ingest.fluxtail.io/v1/receivers/RECEIVER_ID/prometheus/metrics'
export FLUXTAIL_TOKEN='ftl_RECEIVER_BOUND_TOKEN'
curl --fail-with-body -X POST "$FLUXTAIL_RECEIVER_URL" \
-H "Authorization: Bearer $FLUXTAIL_TOKEN" \
-H 'Content-Type: text/plain; version=0.0.4' \
--data-binary $'http_requests_total{service="checkout"} 12\n'

Success is HTTP 202.

Create a prometheus_remote_write receiver and use its exact URL:

https://ingest.fluxtail.io/v1/receivers/RECEIVER_ID/prometheus/api/v1/write

Fluxtail accepts remote_write v1 with Snappy block-compressed protobuf. Snappy framed payloads and remote_write 2.0 are not accepted. Put the token in a credentials file instead of the Prometheus YAML:

remote_write:
- url: "${FLUXTAIL_REMOTE_WRITE_URL}"
authorization:
credentials_file: /etc/prometheus/fluxtail-token

Success is HTTP 204.

Open Live Tail for the configured stream and filter by the metric name. Each sample appears as a log event.

  • Do not append /metrics or /api/v1/write to an exact URL copied from Fluxtail.
  • Confirm the token is bound to the matching receiver.
  • Text requests need a Prometheus text or OpenMetrics content type.
  • remote_write must use v1 block compression.