@logtura/destination-prometheus-remote-write
v0.2.11
Published
Logtura destination driver for Prometheus remote-write receivers (Mimir, VictoriaMetrics, Grafana Cloud, etc).
Downloads
1,610
Readme
@logtura/destination-prometheus-remote-write
Logtura destination driver for any Prometheus-compatible TSDB that accepts remote-write: Mimir, VictoriaMetrics, Thanos, Cortex, Prometheus with the remote_write receiver enabled, Grafana Cloud, etc.
npm install @logtura/destination-prometheus-remote-write @logtura/coreConfig
interface PrometheusRemoteWriteConfig {
endpoint: string; // https://prometheus.example.com/api/v1/write
bearerToken: string | null; // null if the endpoint is open
}What it emits
sink_<id>:
type: prometheus_remote_write
inputs: [<metrics-stream>]
endpoint: "${PROM_URL_<id>}"
# When bearerToken is set:
auth:
strategy: bearer
token: "${PROM_URL_<id>_TOKEN}"Only consumes the metrics flow. Like the Datadog destination, wire this through generateBundle({ metrics: { kind: "destination", ... } }).
