Skip to content

Commit

Permalink
Rename *.yaml to *.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krivak committed Sep 4, 2023
1 parent 5d9b9a7 commit cdd8288
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/tmp/
/vendor/
/config.yaml
/config.yml
/connectbox-exporter
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ RUN apk add --no-cache ca-certificates && \
USER connectbox-exporter
EXPOSE 9119

CMD ["/app/connectbox-exporter", "-config", "/etc/prometheus/connectbox-exporter.yaml"]
CMD ["/app/connectbox-exporter", "-config", \
"/etc/prometheus/connectbox-exporter.yml"]
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ and [connectbox-prometheus](https://github.com/mbugert/connectbox-prometheus).

### Use docker

Create a config file `config.yaml`
([example](https://github.com/tetafro/connectbox-exporter/blob/master/config.example.yaml)).
Create a config file `config.yml`
([example](https://github.com/tetafro/connectbox-exporter/blob/master/config.example.yml)).

```sh
docker run -d \
--volume /host-dir/config.yaml:/etc/prometheus/connectbox-exporter.yaml \
--volume /host-dir/config.yml:/etc/prometheus/connectbox-exporter.yml \
--publish 9119:9119 \
--name connectbox-exporter \
ghcr.io/tetafro/connectbox-exporter:latest
Expand All @@ -32,12 +32,12 @@ docker run -d \

Download and unpack latest [release](https://github.com/tetafro/connectbox-exporter/releases).

Create a config file `config.yaml`
([example](https://github.com/tetafro/connectbox-exporter/blob/master/config.example.yaml)).
Create a config file `config.yml`
([example](https://github.com/tetafro/connectbox-exporter/blob/master/config.example.yml)).

Run
```sh
./connectbox-exporter -config config.yaml
./connectbox-exporter -config config.yml
```

### Build from sources
Expand All @@ -50,7 +50,7 @@ cd connectbox-exporter

Copy and populate config
```sh
cp config.example.yaml config.yaml
cp config.example.yml config.yml
```

Build and run
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
)
defer cancel()

configFile := flag.String("config", "./config.yaml", "path to config file")
configFile := flag.String("config", "./config.yml", "path to config file")
flag.Parse()

config, err := ReadConfig(*configFile)
Expand Down

0 comments on commit cdd8288

Please sign in to comment.