diff --git a/CHANGELOG.md b/CHANGELOG.md index ef7fc02..c53d9d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.3.1 (2024-01-15) +* improve configuration of metrics port + ## 1.3.0 (2024-01-15) * allow serving metrics under a different port * update dependencies to latest versions diff --git a/README.md b/README.md index 28c33db..a032693 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ oneko: catnipUrl: server: port: 8080 - metricsPort: + metricsPort: 8080 logging: level: ``` diff --git a/config/application-default.yaml b/config/application-default.yaml index 1a955f2..7234461 100644 --- a/config/application-default.yaml +++ b/config/application-default.yaml @@ -8,7 +8,7 @@ oneko: catnipUrl: server: port: 8080 - metricsPort: + metricsPort: 8080 mode: production logging: level: diff --git a/pkg/config/config.go b/pkg/config/config.go index 41f56da..b3246b2 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -141,5 +141,5 @@ const ( type ServerConfig struct { Port int `yaml:"port" validate:"required,number"` - MetricsPort int `yaml:"metricsPort" validate:"number"` + MetricsPort int `yaml:"metricsPort" validate:"required,number"` }