@@ -12,26 +12,42 @@ description: |-
1212 1. Remove your old stackit_argus_scrapeconfig resource and run $ terraform apply.
1313 ```terraform
1414 resource "stackitargusscrapeconfig" "example" {
15- projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
16- name = "example-instance"
17- planname = "Monitoring-Medium-EU01"
18- acl = ["1.1.1.1/32", "2.2.2.2/32"]
19- metricsretentiondays = 7
20- metricsretentiondays5mdownsampling = 30
21- metricsretentiondays1hdownsampling = 365
15+ projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
16+ instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
17+ name = "example-job"
18+ metricspath = "/my-metrics"
19+ saml2 = {
20+ enableurl_parameters = true
21+ }
22+ targets = [
23+ {
24+ urls = ["url1", "urls2"]
25+ labels = {
26+ "url1" = "dev"
27+ }
28+ }
29+ ]
2230 }
2331 moved {
2432 from = stackitargusscrapeconfig.example
2533 to = stackitobservabilityscrapeconfig.example
2634 }
2735 resource "stackitobservabilityscrapeconfig" "example" {
28- projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
29- name = "example-instance"
30- planname = "Monitoring-Medium-EU01"
31- acl = ["1.1.1.1/32", "2.2.2.2/32"]
32- metricsretentiondays = 7
33- metricsretentiondays5mdownsampling = 30
34- metricsretentiondays1hdownsampling = 365
36+ projectid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
37+ instanceid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
38+ name = "example-job"
39+ metricspath = "/my-metrics"
40+ saml2 = {
41+ enableurl_parameters = true
42+ }
43+ targets = [
44+ {
45+ urls = ["url1", "urls2"]
46+ labels = {
47+ "url1" = "dev"
48+ }
49+ }
50+ ]
3551 }
3652 ```
3753---
@@ -49,13 +65,21 @@ Example to move the deprecated `stackit_argus_scrapeconfig` resource to the new
49651 . Remove your old ` stackit_argus_scrapeconfig ` resource and run ` $ terraform apply ` .
5066``` terraform
5167resource "stackit_argus_scrapeconfig" "example" {
52- project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
53- name = "example-instance"
54- plan_name = "Monitoring-Medium-EU01"
55- acl = ["1.1.1.1/32", "2.2.2.2/32"]
56- metrics_retention_days = 7
57- metrics_retention_days_5m_downsampling = 30
58- metrics_retention_days_1h_downsampling = 365
68+ project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
69+ instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
70+ name = "example-job"
71+ metrics_path = "/my-metrics"
72+ saml2 = {
73+ enable_url_parameters = true
74+ }
75+ targets = [
76+ {
77+ urls = ["url1", "urls2"]
78+ labels = {
79+ "url1" = "dev"
80+ }
81+ }
82+ ]
5983}
6084
6185moved {
@@ -64,13 +88,21 @@ moved {
6488}
6589
6690resource "stackit_observability_scrapeconfig" "example" {
67- project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
68- name = "example-instance"
69- plan_name = "Monitoring-Medium-EU01"
70- acl = ["1.1.1.1/32", "2.2.2.2/32"]
71- metrics_retention_days = 7
72- metrics_retention_days_5m_downsampling = 30
73- metrics_retention_days_1h_downsampling = 365
91+ project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
92+ instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
93+ name = "example-job"
94+ metrics_path = "/my-metrics"
95+ saml2 = {
96+ enable_url_parameters = true
97+ }
98+ targets = [
99+ {
100+ urls = ["url1", "urls2"]
101+ labels = {
102+ "url1" = "dev"
103+ }
104+ }
105+ ]
74106}
75107```
76108
0 commit comments