Skip to content

Commit e760e1a

Browse files
authored
fix: update default metrics port from 9090 to 9120 (#486)
* fix: update default metrics port from 9090 to 9120 * docs: update wiki
1 parent ac219e6 commit e760e1a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ COPY --from=build-stage /doco-cd /doco-cd
4646

4747
ENV TZ=UTC \
4848
HTTP_PORT=80 \
49-
METRICS_PORT=9090 \
49+
METRICS_PORT=9120 \
5050
LOG_LEVEL=info
5151

5252
ENTRYPOINT ["/doco-cd"]

dev.compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
restart: unless-stopped
1818
ports:
1919
- "80:80"
20-
- "9090:9090"
20+
- "9120:9120"
2121
env_file:
2222
- .env
2323
environment:

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
restart: unless-stopped
1717
ports:
1818
- "80:80" # Webhook endpoint
19-
- "9090:9090" # Prometheus metrics
19+
- "9120:9120" # Prometheus metrics
2020
# For all available environment variables and explanations, see https://github.com/kimdre/doco-cd/wiki/App-Settings
2121
environment:
2222
TZ: Europe/Berlin

docs

Submodule docs updated from a486720 to 07b8912

internal/config/app_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type AppConfig struct {
3030
PollConfigFile string `env:"POLL_CONFIG_FILE,file"` // PollConfigFile is the file containing the PollConfig in YAML format
3131
PollConfig []PollConfig `yaml:"-"` // PollConfig is the YAML configuration for polling Git repositories for changes
3232
MaxPayloadSize int64 `env:"MAX_PAYLOAD_SIZE,notEmpty" envDefault:"1048576"` // MaxPayloadSize is the maximum size of the payload in bytes that the HTTP server will accept (default 1MB = 1048576 bytes)
33-
MetricsPort uint16 `env:"METRICS_PORT,notEmpty" envDefault:"9090" validate:"min=1,max=65535"` // MetricsPort is the port the prometheus metrics server will listen on
33+
MetricsPort uint16 `env:"METRICS_PORT,notEmpty" envDefault:"9120" validate:"min=1,max=65535"` // MetricsPort is the port the prometheus metrics server will listen on
3434
}
3535

3636
// GetAppConfig returns the configuration.

0 commit comments

Comments
 (0)