From 375851d7e9c82cabc7c7f58155679c68a3a1f7b5 Mon Sep 17 00:00:00 2001 From: Adam Snyder Date: Sun, 1 Aug 2021 23:09:21 -0700 Subject: [PATCH] Default port 9841 To match the allocation https://github.com/prometheus/prometheus/wiki/Default-port-allocations --- README.md | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35974c5..87198b1 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Supports all Steam game servers which speak the UDP-based A2S query protocol, fo The image is hosted on Docker Hub. ([Link](https://hub.docker.com/r/armsnyder/a2s-exporter)) ``` -docker run --rm -p 9856:9856 armsnyder/a2s-exporter --address myserver.example.com:12345 +docker run --rm -p 9841:9841 armsnyder/a2s-exporter --address myserver.example.com:12345 ``` ### Arguments @@ -34,7 +34,7 @@ Flag | Variable | Help Flag | Variable | Default | Help --- | --- | --- | --- ---port | A2S_EXPORTER_PORT | 9856 | Port for the metrics exporter. +--port | A2S_EXPORTER_PORT | 9841 | Port for the metrics exporter. --path | A2S_EXPORTER_PATH | /metrics | Path for the metrics exporter. --namespace | A2S_EXPORTER_NAMESPACE | a2s | Namespace prefix for all exported a2s metrics. --a2s-only-metrics | A2S_EXPORTER_A2S_ONLY_METRICS | false | If true, excludes Go runtime and promhttp metrics. diff --git a/main.go b/main.go index 3b2b47a..75de2a3 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ var buildVersion = "development" func main() { // Flags. address := flag.String("address", envOrDefault("A2S_EXPORTER_QUERY_ADDRESS", ""), "Address of the A2S query server as host:port (This is a separate port from the main server port).") - port := flag.Int("port", envOrDefaultInt("A2S_EXPORTER_PORT", 9856), "Port for the metrics exporter.") + port := flag.Int("port", envOrDefaultInt("A2S_EXPORTER_PORT", 9841), "Port for the metrics exporter.") path := flag.String("path", envOrDefault("A2S_EXPORTER_PATH", "/metrics"), "Path for the metrics exporter.") namespace := flag.String("namespace", envOrDefault("A2S_EXPORTER_NAMESPACE", "a2s"), "Namespace prefix for all exported a2s metrics.") a2sOnlyMetrics := flag.Bool("a2s-only-metrics", envOrDefaultBool("A2S_EXPORTER_A2S_ONLY_METRICS", false), "If true, skips exporting Go runtime metrics.")