selectel_dbaas_prometheus_metric_token_v1
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, and Redis.
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 Cloud Platform project. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Cloud Platform 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 Prometheus.id
- Unique identifier of the token.created_at
- Time when the token was created.updated_at
- Time when the token was updated.project_id
- Unique identifier of the associated Cloud Platform project. Learn more about Cloud Platform projects.name
- Token name.value
- Token value.