style: lint code
This commit is contained in:
+2
-2
@@ -90,8 +90,8 @@ You can configure Docker to send logs directly to Loki:
|
||||
logging:
|
||||
driver: loki
|
||||
options:
|
||||
loki-url: "http://localhost:3100/loki/api/v1/push"
|
||||
loki-batch-size: "400"
|
||||
loki-url: 'http://localhost:3100/loki/api/v1/push'
|
||||
loki-batch-size: '400'
|
||||
```
|
||||
|
||||
### Using HTTP API
|
||||
|
||||
@@ -90,8 +90,8 @@ services:
|
||||
logging:
|
||||
driver: loki
|
||||
options:
|
||||
loki-url: "http://localhost:3100/loki/api/v1/push"
|
||||
loki-batch-size: "400"
|
||||
loki-url: 'http://localhost:3100/loki/api/v1/push'
|
||||
loki-batch-size: '400'
|
||||
```
|
||||
|
||||
### 使用 HTTP API
|
||||
|
||||
@@ -4,21 +4,21 @@ x-defaults: &defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
max-file: '3'
|
||||
|
||||
services:
|
||||
loki:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}grafana/loki:${LOKI_VERSION:-3.3.2}
|
||||
ports:
|
||||
- "${LOKI_PORT_OVERRIDE:-3100}:3100"
|
||||
- '${LOKI_PORT_OVERRIDE:-3100}:3100'
|
||||
volumes:
|
||||
- loki_data:/loki
|
||||
- ./loki-config.yaml:/etc/loki/local-config.yaml:ro
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
user: "10001:10001" # Loki user
|
||||
user: '10001:10001' # Loki user
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
@@ -28,7 +28,7 @@ services:
|
||||
cpus: ${LOKI_CPU_RESERVATION:-0.25}
|
||||
memory: ${LOKI_MEMORY_RESERVATION:-256M}
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3100/ready"]
|
||||
test: [CMD, wget, --no-verbose, --tries=1, --spider, 'http://localhost:3100/ready']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
@@ -46,5 +46,5 @@ ruler:
|
||||
# Refer to the buildReport method to see what goes into a report.
|
||||
#
|
||||
# If you would like to disable reporting, uncomment the following lines:
|
||||
#analytics:
|
||||
# analytics:
|
||||
# reporting_enabled: false
|
||||
|
||||
Reference in New Issue
Block a user