From 1ff24e5d1d2c8e7a26fbf3f0551043a35536ba0b Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Thu, 13 Jan 2022 22:41:56 +0100 Subject: [PATCH] add doc + add port to containerfile --- Containerfile | 1 + README.md | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 4c6519a..b3870e7 100644 --- a/Containerfile +++ b/Containerfile @@ -2,4 +2,5 @@ FROM scratch ARG BUILT_ARTIFACT ADD "$BUILT_ARTIFACT" / ENTRYPOINT [ "/nftables-exporter" ] +EXPOSE 9923/tcp CMD [ ] diff --git a/README.md b/README.md index 614809f..230ae22 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,16 @@ 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 +```