Metrics (Prometheus)
Prometheus remote write or an exporter’s /metrics output.
In the console: Console → Observe → Metrics
All guides
Metrics accepts Prometheus data two ways: remote write from Prometheus, Grafana Alloy or an OpenTelemetry Collector, or an exporter’s /metrics text pushed with curl. Nothing about what you scrape changes — only where a copy is also sent.
OTLP metrics are not stored today; use Prometheus remote write from your collector instead.
Why use it
- You already have Prometheus or exporters and want those metrics next to traces and logs, with alerts and dashboards.
How it works
- 1Prometheus, Alloy or a Collector remote-writes a copy of what it scrapes; or curl pushes an exporter’s text.
- 2Series are stored per workspace and counted against the plan’s active-series limit.
What you get
- Every series charted and searchable on the Metrics page.
- Metric alert rules (On-Call & Maintenance → Metric alert rules).
- Widgets on dashboards.
Set it up
Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.
- 1
prometheus.yml
Add the block and reload Prometheus.
yamlremote_write: - url: "https://agent.appstatus.io/api/v1/ingest/prometheus/write" authorization: type: Bearer credentials: "<your-key>"
- 1
config.alloy
alloyprometheus.remote_write "appstatus" { endpoint { url = "https://agent.appstatus.io/api/v1/ingest/prometheus/write" bearer_token = "<your-key>" } } // forward_to = [prometheus.remote_write.appstatus.receiver]
- 1
Collector config
yamlexporters: prometheusremotewrite: endpoint: "https://agent.appstatus.io/api/v1/ingest/prometheus/write" headers: Authorization: "Bearer <your-key>" service: pipelines: metrics: exporters: [prometheusremotewrite]
- 1
Push an exporter every minute from cron
terminalcurl -s http://localhost:9100/metrics | \ curl -s -X POST "https://agent.appstatus.io/api/v1/ingest/prometheus/text" \ -H "Authorization: Bearer <your-key>" -H "Content-Type: text/plain" \ --data-binary @-
Check it works
- 1
Search a metric
Open Metrics and search for a name you send (for example node_cpu_seconds_total).
Uninstall / remove
- 1
Stop the copy
Remove the remote_write block (or the cron line) and reload. Revoke the key.
Troubleshooting
The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.
401 from remote write
Prometheus needs the authorization block exactly as shown (type: Bearer). Older versions use bearer_token: "<your-key>" instead.
429 or dropped series
Each plan has a metric-series count (Free 10,000, Starter 25,000, Pro 100,000, Business 300,000). Drop high-cardinality labels with write_relabel_configs.
I sent OTLP metrics and see nothing
OTLP metrics are accepted but not stored yet. Use the prometheusremotewrite exporter.
Plan limits
- Metric series: Free 10,000 · Starter 25,000 · Pro 100,000 · Business 300,000 · Enterprise unlimited.
Related guides
Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.