-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement Monitoring Service #729
Open
adeatcu-ionos
wants to merge
9
commits into
master
Choose a base branch
from
implement-monitoring-service
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
70563a8
feat: Implement Monitoring Service
adeatcu-ionos 4a50080
test: Add final tests, use generated SDK instead of the local one
adeatcu-ionos ca005ff
test: Add final tests, use generated SDK instead of the local one
adeatcu-ionos 5efa00f
fix: monitoring fixes
cristiGuranIonos 9f18627
Merge remote-tracking branch 'origin/implement-monitoring-service' in…
cristiGuranIonos c88bb4b
fix: monitoring fixes
cristiGuranIonos 7ee2a3c
refactor: Make small changes for error messages, fix typo in README.md
adeatcu-ionos 89eb7a8
test: Add test for import
adeatcu-ionos 0107817
refactor: Fix lint errors
adeatcu-ionos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cristiGuranIonos It's good that you removed this since the API will complain about not setting the
accessKey
and thesecretKey
, so there is no need for us to do this check.