---
title: "POST /api/v1/integrations/add-grafana-prometheus/"
method: POST
path: "/api/v1/integrations/add-grafana-prometheus/"
tags: ["integrations"]
---

# POST /api/v1/integrations/add-grafana-prometheus/

`POST /api/v1/integrations/add-grafana-prometheus/`

## Request

- Base URL: `https://uptime.com` (the document declares no server; this is the origin it was published from)
- URL: `https://uptime.com/api/v1/integrations/add-grafana-prometheus/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/docs/api/v1/integrations/add-grafana-prometheus/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new Grafana Prometheus integration

## Request body

- IntegrationGrafanaPrometheus
  - `pk` integer
  - `url` string
  - `name` string, required: Your preferred name for this integration.
  - `module` string: The provider of the integration.
  - `contact_groups` string[]: Array of contact names or IDs this integration is assigned to
  - `is_errored` boolean
  - `last_error` string
  - `prometheus_url` string, uri: Grafana Cloud Prometheus remote_write endpoint, e.g. https://prometheus-prod-XX-prod-XX.grafana.net/api/prom/push.
  - `metrics_instance_id` string: Numeric instance ID used as the username for basic auth.
  - `metrics_api_token` string: API key or service account token for Prometheus metrics ingestion (basic auth).
  - `tags` string: Optional Prometheus labels attached to every pushed sample. Enter one key=value pair per line, or separate with commas.

## Response `200`

- IntegrationGrafanaPrometheus
  - `pk` integer
  - `url` string
  - `name` string, required: Your preferred name for this integration.
  - `module` string: The provider of the integration.
  - `contact_groups` string[]: Array of contact names or IDs this integration is assigned to
  - `is_errored` boolean
  - `last_error` string
  - `prometheus_url` string, uri: Grafana Cloud Prometheus remote_write endpoint, e.g. https://prometheus-prod-XX-prod-XX.grafana.net/api/prom/push.
  - `metrics_instance_id` string: Numeric instance ID used as the username for basic auth.
  - `metrics_api_token` string: API key or service account token for Prometheus metrics ingestion (basic auth).
  - `tags` string: Optional Prometheus labels attached to every pushed sample. Enter one key=value pair per line, or separate with commas.

---

[API](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema.md) - [All operations](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/llms.txt) - [OpenAPI document](https://skmtc.dev/uptime/apis/uptime-com-openapi-schema/revisions/e1e4a57a60d8?raw)
