@@ -20,10 +20,10 @@ declare "stack" {
20
20
// Setup the prometheus remote write receiver
21
21
prometheus.remote_write "default" {
22
22
endpoint {
23
- url = json_decode(remote.http.config_file .content)["hmInstancePromUrl"] + "/api/prom/push"
23
+ url = json_decode(remote.http.config .content)["hmInstancePromUrl"] + "/api/prom/push"
24
24
25
25
basic_auth {
26
- username = json_decode(remote.http.config_file .content)["hmInstancePromId"]
26
+ username = json_decode(remote.http.config .content)["hmInstancePromId"]
27
27
password = argument.token.value
28
28
}
29
29
}
@@ -32,35 +32,35 @@ declare "stack" {
32
32
// Setup the loki write receiver
33
33
loki.write "default" {
34
34
endpoint {
35
- url = json_decode(remote.http.config_file .content)["hlInstanceUrl"] + "/loki/api/v1/push"
35
+ url = json_decode(remote.http.config .content)["hlInstanceUrl"] + "/loki/api/v1/push"
36
36
37
37
basic_auth {
38
- username = json_decode(remote.http.config_file .content)["hlInstanceId"]
38
+ username = json_decode(remote.http.config .content)["hlInstanceId"]
39
39
password = argument.token.value
40
40
}
41
41
}
42
42
}
43
43
44
44
// Setup the traces receiver
45
45
otelcol.auth.basic "default" {
46
- username = json_decode(remote.http.config_file .content)["htInstanceId"]
46
+ username = json_decode(remote.http.config .content)["htInstanceId"]
47
47
password = argument.token.value
48
48
}
49
49
50
50
otelcol.exporter.otlp "default" {
51
51
client {
52
- endpoint = json_decode(remote.http.config_file .content)["htInstanceUrl"] + ":443"
52
+ endpoint = json_decode(remote.http.config .content)["htInstanceUrl"] + ":443"
53
53
auth = otelcol.auth.basic.default.handler
54
54
}
55
55
}
56
56
57
57
// Setup the pyroscope write receiver
58
58
pyroscope.write "default" {
59
59
endpoint {
60
- url = json_decode(remote.http.config_file .content)["hpInstanceUrl"]
60
+ url = json_decode(remote.http.config .content)["hpInstanceUrl"]
61
61
62
62
basic_auth {
63
- username = json_decode(remote.http.config_file .content)["hpInstanceId"]
63
+ username = json_decode(remote.http.config .content)["hpInstanceId"]
64
64
password = argument.token.value
65
65
}
66
66
}
@@ -81,6 +81,6 @@ declare "stack" {
81
81
value = pyroscope.write.default.receiver
82
82
}
83
83
export "info" {
84
- value = json_decode(remote.http.config_file .content)
84
+ value = json_decode(remote.http.config .content)
85
85
}
86
86
}
0 commit comments