Early access is open. Free plan during early access. Start free
Logthread

Integration

Prometheus remote write

Prometheus 2.x and 3, Grafana Agent and vmagent: remote write 1.0 and 2.0.

  • Category: Moving from Loki
  • How data is sent: Settings in your app

How it works#

  1. Answer a few questions. They only fill in the setup steps. Nothing on this page connects to your servers: Logthread never reaches into your network.
  2. Add a few lines to your Prometheus remote write app. The next page shows the settings and code with this connector's ingest key filled in. There is no agent to install.
  3. Data arrives. Everything is collected inside your environment. It is sent over outbound HTTPS (port 443) to ingest.logthread.com. Nothing is opened to the internet: no inbound ports, VPN or public access to your servers. The connection page shows what has arrived and turns Active with the first record.

Setup#

These are the steps for the default answers. In the app, they follow your answers, and the connector's ingest key replaces YOUR_INGEST_KEY.

Step 1. Add a remote_write. Prometheus 2.x, Grafana Agent and vmagent send remote write 1.0; Prometheus 3 can send 2.0 with protobuf_message: io.prometheus.write.v2.Request. Both are accepted.

prometheus.yml:

remote_write:
  - url: https://ingest.logthread.com/api/v1/write
    authorization:
      credentials: YOUR_INGEST_KEY

Step 2. Reload Prometheus. Series appear under Metrics within a minute.

curl -X POST http://localhost:9090/-/reload

Check that it works#

The connection page under Integrations turns Active with the first trace. Open Traces and filter by your service.

Set it up under Integrations in the app, or from an AI agent with MCP (add_integration). All integrations: Integrations guide. Next: find what it sends in Explore and live tail.