Skip to content

Commit

Permalink
fix typo in grafana cloud module
Browse files Browse the repository at this point in the history
Signed-off-by: erikbaranowski <[email protected]>
  • Loading branch information
erikbaranowski committed Apr 9, 2024
1 parent 9211f43 commit 874cdca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/cloud/grafana/cloud/module.river
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ declare "stack" {
// Setup the prometheus remote write receiver
prometheus.remote_write "default" {
endpoint {
url = json_decode(remote.http.config_file.content)["hmInstancePromUrl"] + "/api/prom/push"
url = json_decode(remote.http.config.content)["hmInstancePromUrl"] + "/api/prom/push"

basic_auth {
username = json_decode(remote.http.config_file.content)["hmInstancePromId"]
username = json_decode(remote.http.config.content)["hmInstancePromId"]
password = argument.token.value
}
}
Expand All @@ -32,35 +32,35 @@ declare "stack" {
// Setup the loki write receiver
loki.write "default" {
endpoint {
url = json_decode(remote.http.config_file.content)["hlInstanceUrl"] + "/loki/api/v1/push"
url = json_decode(remote.http.config.content)["hlInstanceUrl"] + "/loki/api/v1/push"

basic_auth {
username = json_decode(remote.http.config_file.content)["hlInstanceId"]
username = json_decode(remote.http.config.content)["hlInstanceId"]
password = argument.token.value
}
}
}

// Setup the traces receiver
otelcol.auth.basic "default" {
username = json_decode(remote.http.config_file.content)["htInstanceId"]
username = json_decode(remote.http.config.content)["htInstanceId"]
password = argument.token.value
}

otelcol.exporter.otlp "default" {
client {
endpoint = json_decode(remote.http.config_file.content)["htInstanceUrl"] + ":443"
endpoint = json_decode(remote.http.config.content)["htInstanceUrl"] + ":443"
auth = otelcol.auth.basic.default.handler
}
}

// Setup the pyroscope write receiver
pyroscope.write "default" {
endpoint {
url = json_decode(remote.http.config_file.content)["hpInstanceUrl"]
url = json_decode(remote.http.config.content)["hpInstanceUrl"]

basic_auth {
username = json_decode(remote.http.config_file.content)["hpInstanceId"]
username = json_decode(remote.http.config.content)["hpInstanceId"]
password = argument.token.value
}
}
Expand All @@ -81,6 +81,6 @@ declare "stack" {
value = pyroscope.write.default.receiver
}
export "info" {
value = json_decode(remote.http.config_file.content)
value = json_decode(remote.http.config.content)
}
}

0 comments on commit 874cdca

Please sign in to comment.