Browse Source

add doc + add port to containerfile

main v0.0.1
Nicolas Massé 4 years ago
parent
commit
1ff24e5d1d
  1. 1
      Containerfile
  2. 14
      README.md

1
Containerfile

@ -2,4 +2,5 @@ FROM scratch
ARG BUILT_ARTIFACT ARG BUILT_ARTIFACT
ADD "$BUILT_ARTIFACT" / ADD "$BUILT_ARTIFACT" /
ENTRYPOINT [ "/nftables-exporter" ] ENTRYPOINT [ "/nftables-exporter" ]
EXPOSE 9923/tcp
CMD [ ] CMD [ ]

14
README.md

@ -2,4 +2,16 @@
A prometheus exporter that exposes nftables counters. A prometheus exporter that exposes nftables counters.
**WORK IN PROGRESS** ## Usage
Create some counters.
```sh
sudo ./test.nft
```
Run the exporter.
```sh
sudo podman run -d --rm --name nftables-exporter --network host --cap-drop all --cap-add net_admin quay.io/itix/nftables-exporter:latest
```

Loading…
Cancel
Save