Skip to content

Commit 3bd2bc1

Browse files
Add metrics env defaults to deployment
1 parent 47fd919 commit 3bd2bc1

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

‎deployment/install.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ configure_interactive() {
320320
ENCRYPTION_KEY="$(openssl rand -hex 32)"
321321
VL_USERNAME="admin"
322322
VL_PASSWORD="$(openssl rand -hex 16)"
323+
VM_USERNAME="admin"
324+
VM_PASSWORD="$(openssl rand -hex 16)"
323325
REGISTRY_USERNAME="admin"
324326
REGISTRY_PASSWORD="$(openssl rand -hex 16)"
325327
REGISTRY_HTTP_SECRET="$(openssl rand -hex 32)"
@@ -371,6 +373,10 @@ VL_USERNAME=${VL_USERNAME}
371373
VL_PASSWORD=${VL_PASSWORD}
372374
VL_RETENTION=7d
373375
376+
VM_USERNAME=${VM_USERNAME}
377+
VM_PASSWORD=${VM_PASSWORD}
378+
VM_RETENTION=30d
379+
374380
REGISTRY_USERNAME=${REGISTRY_USERNAME}
375381
REGISTRY_PASSWORD=${REGISTRY_PASSWORD}
376382
REGISTRY_HTTP_SECRET=${REGISTRY_HTTP_SECRET}

‎docs/installation.mdx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ use the common commands below when investigating a self-hosted service.
139139
| `VL_PASSWORD` | Logs service password |
140140
| `VL_RETENTION` | Log retention period (default: `7d`) |
141141

142+
### Victoria Metrics
143+
144+
| Variable | Description |
145+
| --- | --- |
146+
| `VM_USERNAME` | Metrics service username |
147+
| `VM_PASSWORD` | Metrics service password |
148+
| `VM_RETENTION` | Metrics retention period (default: `30d`) |
149+
142150
### Registry
143151

144152
| Variable | Description |

‎web/SELF-HOSTING.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ mutable tags such as `latest` or `tip`.
7878
| `VL_PASSWORD` | Logs service password |
7979
| `VL_RETENTION` | Log retention period (default: `7d`) |
8080

81+
### Victoria Metrics
82+
83+
| Variable | Description |
84+
|----------|-------------|
85+
| `VM_USERNAME` | Metrics service username |
86+
| `VM_PASSWORD` | Metrics service password |
87+
| `VM_RETENTION` | Metrics retention period (default: `30d`) |
88+
8189
### Registry
8290

8391
| Variable | Description |

0 commit comments

Comments
 (0)