-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement Monitoring Service (#729)
- Loading branch information
1 parent
0ab8f6d
commit ee1bee8
Showing
319 changed files
with
22,551 additions
and
6,477 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,49 @@ | ||
--- | ||
subcategory: "Monitoring Service" | ||
layout: "ionoscloud" | ||
page_title: "IonosCloud: ionoscloud_monitoring_pipeline" | ||
sidebar_current: "docs-resource-monitoring_pipeline" | ||
description: |- | ||
Get information on a Monitoring pipeline. | ||
--- | ||
|
||
# ionoscloud_monitoring_pipeline | ||
|
||
The **Monitoring pipeline** datasource can be used to search for and return an existing Monitoring pipeline. | ||
If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. | ||
|
||
> ⚠️ Only tokens are accepted for authorization in the **monitoring_pipeline** data source. Please ensure you are using tokens as other methods will not be valid. | ||
## Example Usage | ||
|
||
### By ID | ||
```hcl | ||
data "ionoscloud_monitoring_pipeline" "example" { | ||
location = "de/txl" | ||
id = "pipeline_id" | ||
} | ||
``` | ||
|
||
### By name | ||
```hcl | ||
data "ionoscloud_monitoring_pipeline" "example" { | ||
location = "de/txl" | ||
name = "pipeline_name" | ||
} | ||
``` | ||
|
||
## Argument reference | ||
* `location` - (Optional)[string] The location of the Monitoring pipeline. Default is `de/fra`. It can be one of `de/fra`, `de/txl`, `gb/lhr`, `es/vit`, `fr/par`. If this is not set and if no value is provided for the `IONOS_API_URL` env var, the default `location` will be: `de/fra`. | ||
* `id` - (Optional)[string] The ID of the Monitoring pipeline you want to search for. | ||
* `name` - (Optional)[string] The name of the Monitoring pipeline you want to search for. | ||
|
||
Either `id` or `name` must be provided. If none, or both are provided, the datasource will return an error. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are returned by the datasource: | ||
|
||
* `id` - The UUID of the Monitoring pipeline. | ||
* `name` - The name of the Monitoring pipeline. | ||
* `grafana_address` - The endpoint of the Grafana instance. | ||
* `http_endpoint`- The HTTP endpoint of the Monitoring instance. |
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,63 @@ | ||
--- | ||
subcategory: "Monitoring Service" | ||
layout: "ionoscloud" | ||
page_title: "IonosCloud: ionoscloud_monitoring_pipeline" | ||
sidebar_current: "docs-resource-monitoring_pipeline" | ||
description: |- | ||
Creates and manages Monitoring pipeline objects. | ||
--- | ||
|
||
# ionoscloud_monitoring_pipeline | ||
|
||
Manages a **Monitoring pipeline**. | ||
|
||
> ⚠️ Only tokens are accepted for authorization in the **monitoring_pipeline** resource. Please ensure you are using tokens as other methods will not be valid. | ||
## Usage example | ||
|
||
```hcl | ||
resource "ionoscloud_monitoring_pipeline" "example" { | ||
location = "es/vit" | ||
name = "pipelineExample" | ||
} | ||
``` | ||
|
||
**NOTE:** The default timeout for all operations is 60 minutes. If you want to change the default value, you can use `timeouts` attribute inside the resource: | ||
|
||
```hcl | ||
resource "ionoscloud_monitoring_pipeline" "example" { | ||
location = "es/vit" | ||
name = "pipelineExample" | ||
timeouts { | ||
create = "20m" | ||
read = "30s" | ||
update = "10m" | ||
delete = "10m" | ||
} | ||
} | ||
``` | ||
|
||
## Argument reference | ||
|
||
* `name` - (Required)[string] The name of the Monitoring pipeline. | ||
* `location` - (Optional)[string] The location of the Monitoring pipeline. Default is `de/fra`. It can be one of `de/fra`, `de/txl`, `gb/lhr`, `es/vit`, `fr/par`. If this is not set and if no value is provided for the `IONOS_API_URL_MONITORING` env var, the default `location` will be: `de/fra`. | ||
* `grafana_endpoint` - (Computed)[string] The endpoint of the Grafana instance. | ||
* `http_endpoint` - (Computed)[string] The HTTP endpoint of the monitoring instance. | ||
* `key` - (Computed)(Sensitive)[string] The key used to connect to the monitoring pipeline. | ||
|
||
> **⚠ NOTE:** `IONOS_API_URL_MONITORING` can be used to set a custom API URL for the resource. `location` field needs to be empty, otherwise it will override the custom API URL. | ||
## Import | ||
|
||
In order to import a Monitoring pipeline, you can define an empty Monitoring pipeline resource in the plan: | ||
|
||
```hcl | ||
resource "ionoscloud_monitoring_pipeline" "example" { | ||
} | ||
``` | ||
|
||
The resource can be imported using the `location` and `pipeline_id`, for example: | ||
|
||
```shell | ||
terraform import ionoscloud_monitoring_pipeline.example location:pipeline_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
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.