File tree Expand file tree Collapse file tree 2 files changed +58
-62
lines changed
solutions/fully-configurable Expand file tree Collapse file tree 2 files changed +58
-62
lines changed Original file line number Diff line number Diff line change @@ -146,37 +146,35 @@ module "monitoring_agents" {
146146 access_key = module. cloud_monitoring . access_key
147147 instance_region = var. region
148148 prometheus_config = {
149- config = {
150- scrape_configs = [
151- {
152- job_name = " testing-prometheus-scrape"
153- tls_config = {
154- insecure_skip_verify = true
155- }
156- kubernetes_sd_configs = [
157- {
158- role = " pod"
159- }
160- ]
161- relabel_configs = [
162- {
163- action = " keep"
164- source_labels = [" __meta_kubernetes_pod_host_ip" ]
165- regex = " __HOSTIPS__"
166- },
167- {
168- action = " drop"
169- source_labels = [" __meta_kubernetes_pod_annotation_promcat_sysdig_com_omit" ]
170- regex = " true"
171- },
172- {
173- source_labels = [" __meta_kubernetes_pod_phase" ]
174- action = " keep"
175- regex = " Running"
176- }
177- ]
149+ scrape_configs = [
150+ {
151+ job_name = " testing-prometheus-scrape"
152+ tls_config = {
153+ insecure_skip_verify = true
178154 }
179- ]
180- }
155+ kubernetes_sd_configs = [
156+ {
157+ role = " pod"
158+ }
159+ ]
160+ relabel_configs = [
161+ {
162+ action = " keep"
163+ source_labels = [" __meta_kubernetes_pod_host_ip" ]
164+ regex = " __HOSTIPS__"
165+ },
166+ {
167+ action = " drop"
168+ source_labels = [" __meta_kubernetes_pod_annotation_promcat_sysdig_com_omit" ]
169+ regex = " true"
170+ },
171+ {
172+ source_labels = [" __meta_kubernetes_pod_phase" ]
173+ action = " keep"
174+ regex = " Running"
175+ }
176+ ]
177+ }
178+ ]
181179 }
182180}
Original file line number Diff line number Diff line change @@ -65,37 +65,35 @@ object({
6565
6666``` hcl
6767{
68- config = {
69- scrape_configs = [
70- {
71- job_name = "testing-prometheus-scrape"
72- tls_config = {
73- insecure_skip_verify = true
74- }
75- kubernetes_sd_configs = [
76- {
77- role = "pod"
78- }
79- ]
80- relabel_configs = [
81- {
82- action = "keep"
83- source_labels = ["__meta_kubernetes_pod_host_ip"]
84- regex = "__HOSTIPS__"
85- },
86- {
87- action = "drop"
88- source_labels = ["__meta_kubernetes_pod_annotation_promcat_sysdig_com_omit"]
89- regex = "true"
90- },
91- {
92- source_labels = ["__meta_kubernetes_pod_phase"]
93- action = "keep"
94- regex = "Running"
95- }
96- ]
68+ scrape_configs = [
69+ {
70+ job_name = "testing-prometheus-scrape"
71+ tls_config = {
72+ insecure_skip_verify = true
9773 }
98- ]
99- }
74+ kubernetes_sd_configs = [
75+ {
76+ role = "pod"
77+ }
78+ ]
79+ relabel_configs = [
80+ {
81+ action = "keep"
82+ source_labels = ["__meta_kubernetes_pod_host_ip"]
83+ regex = "__HOSTIPS__"
84+ },
85+ {
86+ action = "drop"
87+ source_labels = ["__meta_kubernetes_pod_annotation_promcat_sysdig_com_omit"]
88+ regex = "true"
89+ },
90+ {
91+ source_labels = ["__meta_kubernetes_pod_phase"]
92+ action = "keep"
93+ regex = "Running"
94+ }
95+ ]
96+ }
97+ ]
10098}
10199```
You can’t perform that action at this time.
0 commit comments