-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CC-26984] metric-export: add resource for prometheus integration
This change introduces resource MetricExportPrometheusConfig which manages prometheus metric export integration in gcp and aws cloud providers.
- Loading branch information
Showing
12 changed files
with
702 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "cockroach_metric_export_prometheus_config Resource - terraform-provider-cockroach" | ||
subcategory: "" | ||
description: |- | ||
Prometheus metric export configuration for a cluster. This is only available for dedicated clusters with AWS and GCP cloud providers. | ||
--- | ||
|
||
# cockroach_metric_export_prometheus_config (Resource) | ||
|
||
Prometheus metric export configuration for a cluster. This is only available for dedicated clusters with AWS and GCP cloud providers. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
variable "cluster_id" { | ||
type = string | ||
} | ||
resource "cockroach_metric_export_prometheus_config" "example" { | ||
id = var.cluster_id | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) Cluster ID. | ||
|
||
### Read-Only | ||
|
||
- `status` (String) The current state of the metric export configuration. Possible values are: [`NOT_DEPLOYED` `DISABLING` `ENABLING` `ENABLED` `ERROR`] | ||
- `targets` (Map of String) Represents prometheus scrape endpoint for each region. You can fetch endpoints either by executing `terraform state show {resource}` or by enabling terraform logs. |
7 changes: 7 additions & 0 deletions
7
examples/resources/cockroach_metric_export_prometheus_config/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
variable "cluster_id" { | ||
type = string | ||
} | ||
|
||
resource "cockroach_metric_export_prometheus_config" "example" { | ||
id = var.cluster_id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.