Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Apr 14, 2024
1 parent 99a2d8c commit ad26b72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ $ docker-compose up -d

### Grafana Alloy

To install and run alloy on hosts
To install and run `alloy` on hosts

```zsh
$ wget https://github.com/grafana/alloy/releases/download/v1.0.0/alloy-linux-amd64.zip
$ unzip alloy-linux-amd64.zip
$ mv alloy-linux-amd64 alloy

$ export PROM_URL=http://X.X.X.X:9090/api/v1/write
$ export PROM_USERNAME=admin
$ export PROM_PASSWORD=password
$ alloy-linux-amd64 run config.alloy
$ export PROMETHEUS_URL=http://X.X.X.X:9090/api/v1/write
$ export PROMETHEUS_USERNAME=admin
$ export PROMETHEUS_PASSWORD=password

$ ./alloy run config.alloy
```


Expand Down
6 changes: 3 additions & 3 deletions config.alloy
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ logging {

prometheus.remote_write "default" {
endpoint {
url = env("PROM_URL")
url = env("PROMETHEUS_URL")

basic_auth {
username = env("PROM_USERNAME")
password = env("PROM_PASSWORD")
username = env("PROMETHEUS_USERNAME")
password = env("PROMETHEUS_PASSWORD")
}
}
}
Expand Down

0 comments on commit ad26b72

Please sign in to comment.