Skip to content

Commit

Permalink
Fixing unsafe examples (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored Jun 29, 2023
1 parent c2befb7 commit 9e2a71b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion deployments/02-grafana-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ data:
prometheus.remote_write "mimir" {
endpoint {
url = "https://" + env("MIMIR_USER") + ":" + env("GRAFANA_API_KEY") + "@" + env("MIMIR_ENDPOINT") + "/api/prom/push"
url = "https://" + env("MIMIR_ENDPOINT") + "/api/prom/push"
basic_auth {
username = env("MIMIR_USER")
password = env("GRAFANA_API_KEY")
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions docs/agent-vs-direct/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,13 @@ otelcol.exporter.prometheus "default" {
}
prometheus.remote_write "mimir" {
endpoint {
url = "https://" + env("MIMIR_USER") + ":" + env("GRAFANA_API_KEY") + "@" + env("MIMIR_ENDPOINT") + "/api/prom/push"
endpoint {
url = "https://" + env("MIMIR_ENDPOINT") + "/api/prom/push"
basic_auth {
username = env("MIMIR_USER")
password = env("GRAFANA_API_KEY")
}
}
}
```

Expand Down
6 changes: 5 additions & 1 deletion docs/agent-vs-direct/agent-config.river
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ otelcol.exporter.prometheus "default" {

prometheus.remote_write "mimir" {
endpoint {
url = "https://" + env("MIMIR_USER") + ":" + env("GRAFANA_API_KEY") + "@" + env("MIMIR_ENDPOINT") + "/api/prom/push"
url = "https://" + env("MIMIR_ENDPOINT") + "/api/prom/push"
basic_auth {
username = env("MIMIR_USER")
password = env("GRAFANA_API_KEY")
}
}
}

Expand Down

0 comments on commit 9e2a71b

Please sign in to comment.