fix: docs/argus_scrapeconfig (#680)
This commit is contained in:
parent
9a9e1902e0
commit
ada9e096fe
1 changed files with 60 additions and 28 deletions
|
|
@ -12,26 +12,42 @@ description: |-
|
||||||
1. Remove your old stackit_argus_scrapeconfig resource and run $ terraform apply.
|
1. Remove your old stackit_argus_scrapeconfig resource and run $ terraform apply.
|
||||||
```terraform
|
```terraform
|
||||||
resource "stackitargusscrapeconfig" "example" {
|
resource "stackitargusscrapeconfig" "example" {
|
||||||
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
name = "example-instance"
|
instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
planname = "Monitoring-Medium-EU01"
|
name = "example-job"
|
||||||
acl = ["1.1.1.1/32", "2.2.2.2/32"]
|
metricspath = "/my-metrics"
|
||||||
metricsretentiondays = 7
|
saml2 = {
|
||||||
metricsretentiondays5mdownsampling = 30
|
enableurl_parameters = true
|
||||||
metricsretentiondays1hdownsampling = 365
|
}
|
||||||
|
targets = [
|
||||||
|
{
|
||||||
|
urls = ["url1", "urls2"]
|
||||||
|
labels = {
|
||||||
|
"url1" = "dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
moved {
|
moved {
|
||||||
from = stackitargusscrapeconfig.example
|
from = stackitargusscrapeconfig.example
|
||||||
to = stackitobservabilityscrapeconfig.example
|
to = stackitobservabilityscrapeconfig.example
|
||||||
}
|
}
|
||||||
resource "stackitobservabilityscrapeconfig" "example" {
|
resource "stackitobservabilityscrapeconfig" "example" {
|
||||||
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
name = "example-instance"
|
instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
planname = "Monitoring-Medium-EU01"
|
name = "example-job"
|
||||||
acl = ["1.1.1.1/32", "2.2.2.2/32"]
|
metricspath = "/my-metrics"
|
||||||
metricsretentiondays = 7
|
saml2 = {
|
||||||
metricsretentiondays5mdownsampling = 30
|
enableurl_parameters = true
|
||||||
metricsretentiondays1hdownsampling = 365
|
}
|
||||||
|
targets = [
|
||||||
|
{
|
||||||
|
urls = ["url1", "urls2"]
|
||||||
|
labels = {
|
||||||
|
"url1" = "dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
@ -49,13 +65,21 @@ Example to move the deprecated `stackit_argus_scrapeconfig` resource to the new
|
||||||
1. Remove your old `stackit_argus_scrapeconfig` resource and run `$ terraform apply`.
|
1. Remove your old `stackit_argus_scrapeconfig` resource and run `$ terraform apply`.
|
||||||
```terraform
|
```terraform
|
||||||
resource "stackit_argus_scrapeconfig" "example" {
|
resource "stackit_argus_scrapeconfig" "example" {
|
||||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
name = "example-instance"
|
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
plan_name = "Monitoring-Medium-EU01"
|
name = "example-job"
|
||||||
acl = ["1.1.1.1/32", "2.2.2.2/32"]
|
metrics_path = "/my-metrics"
|
||||||
metrics_retention_days = 7
|
saml2 = {
|
||||||
metrics_retention_days_5m_downsampling = 30
|
enable_url_parameters = true
|
||||||
metrics_retention_days_1h_downsampling = 365
|
}
|
||||||
|
targets = [
|
||||||
|
{
|
||||||
|
urls = ["url1", "urls2"]
|
||||||
|
labels = {
|
||||||
|
"url1" = "dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
moved {
|
moved {
|
||||||
|
|
@ -64,13 +88,21 @@ moved {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "stackit_observability_scrapeconfig" "example" {
|
resource "stackit_observability_scrapeconfig" "example" {
|
||||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
name = "example-instance"
|
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
plan_name = "Monitoring-Medium-EU01"
|
name = "example-job"
|
||||||
acl = ["1.1.1.1/32", "2.2.2.2/32"]
|
metrics_path = "/my-metrics"
|
||||||
metrics_retention_days = 7
|
saml2 = {
|
||||||
metrics_retention_days_5m_downsampling = 30
|
enable_url_parameters = true
|
||||||
metrics_retention_days_1h_downsampling = 365
|
}
|
||||||
|
targets = [
|
||||||
|
{
|
||||||
|
urls = ["url1", "urls2"]
|
||||||
|
labels = {
|
||||||
|
"url1" = "dev"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue