Skip to content

Commit

Permalink
fix: add better default value for metrics port (#35)
Browse files Browse the repository at this point in the history
* add better default value for metrics port

* edit changelog
  • Loading branch information
philmtd authored Jan 15, 2024
1 parent b866eb2 commit 4ba2db3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ oneko:
catnipUrl:
server:
port: 8080
metricsPort:
metricsPort: 8080
logging:
level:
```
Expand Down
2 changes: 1 addition & 1 deletion config/application-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ oneko:
catnipUrl:
server:
port: 8080
metricsPort:
metricsPort: 8080
mode: production
logging:
level:
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 4ba2db3

Please sign in to comment.