-
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
737 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,40 @@ | ||
--- | ||
# 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. | ||
|
||
### Optional | ||
|
||
- `enabled` (Boolean) Represents prometheus integration status. Please refrain setting any value as it is used for state management. | ||
|
||
### Read-Only | ||
|
||
- `status` (String) Encodes the possible states that a metric export configuration can be in as it is created, deployed, and disabled. | ||
- `targets` (Map of String) Represents the endpoint details to scrape metrics. | ||
- `user_message` (String) Elaborates on the metric export status and hints at how to fix issues that may have occurred during asynchronous operations. |
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.