integrations

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

Create a new Grafana Prometheus integration

Request

Request body

pkinteger
urlstring
namestring required

Your preferred name for this integration.

modulestring

The provider of the integration.

contact_groupsstring[]

Array of contact names or IDs this integration is assigned to

is_erroredboolean
last_errorstring
prometheus_urlstring uri

Grafana Cloud Prometheus remote_write endpoint, e.g. https://prometheus-prod-XX-prod-XX.grafana.net/api/prom/push.

metrics_instance_idstring

Numeric instance ID used as the username for basic auth.

metrics_api_tokenstring

API key or service account token for Prometheus metrics ingestion (basic auth).

tagsstring

Optional Prometheus labels attached to every pushed sample. Enter one key=value pair per line, or separate with commas.

Response

pkinteger
urlstring
namestring required

Your preferred name for this integration.

modulestring

The provider of the integration.

contact_groupsstring[]

Array of contact names or IDs this integration is assigned to

is_erroredboolean
last_errorstring
prometheus_urlstring uri

Grafana Cloud Prometheus remote_write endpoint, e.g. https://prometheus-prod-XX-prod-XX.grafana.net/api/prom/push.

metrics_instance_idstring

Numeric instance ID used as the username for basic auth.

metrics_api_tokenstring

API key or service account token for Prometheus metrics ingestion (basic auth).

tagsstring

Optional Prometheus labels attached to every pushed sample. Enter one key=value pair per line, or separate with commas.

Changes

No recorded changes to this operation across all 1 revision of this API.