Skip to content

Commit

Permalink
Fix: prometheus config
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Aug 17, 2024
1 parent 3bcc815 commit 0e3dd47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.docker.example
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ DB_ENABLE_MIN_DATABASE=0
# Enable file metadata cache
DB_ENABLE_FILE_REFERENCE_DATABASE=0

PROMETHEUS_ENABLE=false
PROMETHEUS_BIND_TO=0.0.0.0:12345

ERROR_NOTIFICATION_BOT_TOKEN=
Expand Down
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ DB_ENABLE_MIN_DATABASE=0
# Enable file metadata cache
DB_ENABLE_FILE_REFERENCE_DATABASE=0

PROMETHEUS_ENABLE=0
PROMETHEUS_BIND_TO=0.0.0.0:12345

ERROR_NOTIFICATION_BOT_TOKEN=
Expand Down
4 changes: 2 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ static function (string $peer): string|int {
'download_parallel_chunks' => 20,
],
'metrics' => [
'enable_prometheus_collection' => true, //(bool)getenv("PROMETHEUS_BIND_TO"),
'metrics_bind_to' => fromString("0.0.0.0:12345")
'enable_prometheus_collection' => (bool)getenv("PROMETHEUS_ENABLE"),
'metrics_bind_to' => fromString((string)getenv("PROMETHEUS_BIND_TO")),
]
],
'api' => [
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
timeout: 30s
retries: 1
base-mysql:
image: mariadb:11.1
image: mariadb:11.4
restart: unless-stopped
volumes:
- ./.mysql:/var/lib/mysql
Expand Down

0 comments on commit 0e3dd47

Please sign in to comment.