Skip to content

Commit

Permalink
Default port 9841
Browse files Browse the repository at this point in the history
  • Loading branch information
armsnyder committed Aug 2, 2021
1 parent 606c43d commit 375851d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 375851d

Please sign in to comment.