File tree Expand file tree Collapse file tree 1 file changed +30
-33
lines changed
solutions/fully-configurable Expand file tree Collapse file tree 1 file changed +30
-33
lines changed Original file line number Diff line number Diff line change @@ -64,39 +64,36 @@ object({
6464### Example Usage
6565
6666``` hcl
67- {
68- file = true
69- yaml = {
70- scrape_configs = [
71- {
72- job_name = "testing-prometheus-scrape"
73- tls_config = {
74- insecure_skip_verify = true
75- }
76- kubernetes_sd_configs = [
77- {
78- role = "pod"
79- }
80- ]
81- relabel_configs = [
82- {
83- action = "keep"
84- source_labels = ["__meta_kubernetes_pod_host_ip"]
85- regex = "__HOSTIPS__"
86- },
87- {
88- action = "drop"
89- source_labels = ["__meta_kubernetes_pod_annotation_promcat_sysdig_com_omit"]
90- regex = "true"
91- },
92- {
93- source_labels = ["__meta_kubernetes_pod_phase"]
94- action = "keep"
95- regex = "Running"
96- }
97- ]
67+ config = {
68+ scrape_configs = [
69+ {
70+ job_name = "testing-prometheus-scrape"
71+ tls_config = {
72+ insecure_skip_verify = true
9873 }
99- ]
100- }
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+ ]
10198}
10299```
You can’t perform that action at this time.
0 commit comments