Skip to main content

Data source selectel_dbaas_prometheus_metric_token_v1

Last update:
For your information

This instruction is a copy of the Selectel Terraform provider documentation in the Terraform Registry.

Provides a list of tokens for Prometheus available in Managed Databases. For more information about tokens for Prometheus, see the official Selectel documentation for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, MySQL semi-sync, MySQL sync, Redis, and Kafka.

Example Usage

data "selectel_dbaas_prometheus_metric_token_v1" "token_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
}

Argument Reference

  • project_id - (Required) Unique identifier of the associated project. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects.

  • region - (Required) Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.

Attributes Reference

  • prometheus_metrics_tokens - List of tokens for monitoring via Prometheus.

    • id - Unique token identifier.

    • created_at - Token creation time.

    • updated_at - Token update time.

    • project_id - Unique identifier of the associated project. Learn more about Projects.

    • name - Token name.

    • value - Token value.