This project uses Tinybird's Service Data Sources to aggregate and publish organizational metrics as endpoints in Prometheus format for quick integration with common monitoring tools.
- Includes a set of Pipes that consolidate and process organizational metrics.
- Exposes all key metrics through a single Pipe Endpoint in Prometheus format for streamlined monitoring.
- Provides essential insights to help you monitor your usage, detect anomalies, and set up alerts in critical areas such as:
- Data ingestion: Track the volume and frequency of ingested data.
- Pipe endpoint usage: Analyze requests and identify unusual traffic patterns.
- Storage: Monitor storage usage to optimize resources and avoid limits.
- Jobs: Keep track of the status and performance of scheduled jobs.
- You must have a Tinybird organization.
- You need to be an admin of the organization to access organization Service Data Sources.
To deploy this template on Tinybird, run:
# select or create a new workspace
tb login
# deploy the template
tb --cloud deploy --template https://github.com/tinybirdco/tinybird-org-metrics-exporter/tree/main/tinybirdAccess the Prometheus metrics endpoint at https://api.tinybird.co/v0/pipes/organization_metrics.prometheus.
- Replace
api.tinybird.cowith your Tinybird host if the workspace is in a different region. See Regions and endpoints. - Token: for a quick check in development, you can use the pre-existing admin
user@domainToken of an Organization admin to authenticate requests. But for production, create a dedicated token with minimal permissions using the Tinybird CLI:
tb --cloud token create static prometheus_org_access --scope "WORKSPACE:READ_ALL" --scope "ORG_DATASOURCES:READ"To scrape the Tinybird metrics endpoint, you can configure your prometheus.yml file as follows:
scrape_configs:
- job_name: tinybird_org_metrics
scrape_interval: 15s # Adjust the scrape interval as needed
scheme: 'https'
static_configs:
- targets:
- 'api.tinybird.co' # Adjust this for your region if necessary
metrics_path: '/v0/pipes/organization_metrics.prometheus'
bearer_token: '<your-token>'We've included a sample dashboard config for Grafana to help you get started. See the JSON file.
Import the dashboard with the following steps:
- Go to Grafana and click on the Dashboards menu.
- Select New > Import.
- Click on Upload dashboard JSON file.
- Select the JSON file and select Upload.
- Select the Prometheus datasource.
- Click Import.
The dashboard uses the Prometheus configuration in this repo, with the job name tinybird_org_metrics.
Add the following configuration to your OpenMetrics Datadog agent conf.yaml file:
instances:
- openmetrics_endpoint: 'https://api.tinybird.co/v0/pipes/organization_metrics.prometheus'
namespace: tinybird_org_metrics
headers:
Authorization: 'Bearer <your-token>'
metrics:
- "*"
max_returned_metrics: 700000- Replace
api.tinybird.cowith your Tinybird host if the workspace is in a different region. See Regions and endpoints.
We've included a sample dashboard config for Datadog that you can use to get started. See the JSON file.
Import the dashboard with the following steps:
- Go to Datadog and click on the Dashboards menu.
- Select New Dashboard.
- Select New Dashboard in the dialog.
- Select the settings gear icon (⚙️).
- Select Import Dashboard.
- Browse to the JSON file.
- Select Yes, replace.

