Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/integrations/metrics-endpoint-reference-setups/fireworks-ai.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-infrastructure/integrations/metrics-endpoint-reference-setups/fireworks-ai/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Monitor Fireworks AI deployments with the Metrics Endpoint integration
Fireworks AI exposes real-time performance metrics for on-demand deployments, such as request rate, error rate, latency, and token throughput, on a Prometheus-compatible endpoint. You can use the Metrics Endpoint integration to scrape this endpoint from Grafana Cloud without running any additional infrastructure.
For details about the endpoint and every metric it exposes, refer to Exporting Metrics in the Fireworks AI documentation.
Before you begin
You need:
- A Fireworks AI account with at least one on-demand deployment. The endpoint doesn’t report serverless usage. For billing and usage data, refer to Exporting Billing Metrics.
- Your Fireworks AI account ID.
- A Fireworks AI API key for that account.
Fireworks AI limits the metrics endpoint to six requests per minute per account. Requests over the limit fail with HTTP 429 (Too Many Requests). The limit is shared by every client that reads the endpoint for your account, including any Prometheus server or OpenTelemetry Collector that you already run.
Create the scrape job
In your Grafana Cloud stack, click Connections in the left-hand menu.
Under Add new connection, find and select the Metrics Endpoint tile to open the integration.
Create a scrape job with the following settings, making sure to replace
<ACCOUNT_ID>with your Fireworks AI account ID:Setting Value Scrape job name fireworks, or any name that uses only letters, digits, dashes, and underscoresURL https://api.fireworks.ai/v1/accounts/<ACCOUNT_ID>/metricsScrape interval 1 minute Authentication method Bearer Bearer token Your Fireworks AI API key. Don’t include the Bearerprefix.Test the connection.
Save the scrape job.
Fireworks AI updates these metrics every 30 seconds and recommends a 1 minute scrape interval. A single scrape job with a 1 minute interval uses one of the six requests per minute that your account allows. Create only one scrape job per Fireworks AI account.
Each connection test sends two requests to the endpoint: one without credentials, to confirm that the endpoint requires authentication, and one with your API key. These requests count toward the Fireworks AI rate limit.
Check that metrics are arriving
The Metrics Endpoint integration adds a scrape_job label, set to your scrape job name, to every series it collects.
Use this label to filter Fireworks AI metrics.
The examples on this page use the scrape job name fireworks.
In Grafana Cloud, open Explore and select your Prometheus data source.
Run the following query:
promqlmetrics_endpoint_export_response_success{scrape_job="fireworks"}A value of
1means the last scrape succeeded. A value of0means it failed, and thestatus_codelabel shows the HTTP status code that Fireworks AI returned.
Troubleshooting
The connection test fails with an unauthorized or unsupported status code error
- Check that the API key belongs to the account in the URL.
- Check that the bearer token doesn’t start with
Bearer. - If the API key is correct, another client might be using up the Fireworks AI rate limit. Wait one minute and test the connection again.
Scrapes fail with status code 429
If metrics_endpoint_export_response_success{scrape_job="fireworks", status_code="429"} returns 0, Fireworks AI is rate limiting the scrape.
Remove any other scrape jobs or clients that read the same account’s metrics endpoint, and keep the scrape interval at 1 minute or longer.
Scrapes succeed but no Fireworks AI metrics appear
Fireworks AI only reports these metrics for on-demand deployments. Check that the account in the URL has at least one running on-demand deployment.
Was this page helpful?
Related resources from Grafana Labs


