fixed for updated telegraf
This commit is contained in:
@@ -24,7 +24,6 @@ Various tools to monitor Docker containers
|
|||||||
|
|
||||||
| Environment Variable | Description |
|
| Environment Variable | Description |
|
||||||
| -------------------------- | ----------------------------------------------- |
|
| -------------------------- | ----------------------------------------------- |
|
||||||
| `HOSTNAME` | Hostname for identifying log lines |
|
|
||||||
| `DOCKER_GUID` | Group ID number for the `docker` user group |
|
| `DOCKER_GUID` | Group ID number for the `docker` user group |
|
||||||
| `DOCKER_INFLUXDB_INIT_ORG` | Organization name for InfluxDB |
|
| `DOCKER_INFLUXDB_INIT_ORG` | Organization name for InfluxDB |
|
||||||
| `INFLUX_WRITE_TOKEN` | InfluxDB write token |
|
| `INFLUX_WRITE_TOKEN` | InfluxDB write token |
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
image: telegraf
|
image: telegraf
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
uts: host
|
uts: host
|
||||||
user: root:${DOCKER_GUID}
|
user: telegraf:${DOCKER_GUID}
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
@@ -27,8 +27,6 @@ services:
|
|||||||
uts: host
|
uts: host
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
|
||||||
- DOCKER_HOST=${HOSTNAME}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./promtail:/etc/promtail
|
- ./promtail:/etc/promtail
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ scrape_configs:
|
|||||||
- source_labels: ['__meta_docker_container_log_stream']
|
- source_labels: ['__meta_docker_container_log_stream']
|
||||||
target_label: 'logstream'
|
target_label: 'logstream'
|
||||||
- target_label: 'host'
|
- target_label: 'host'
|
||||||
replacement: '${DOCKER_HOST}'
|
replacement: '${HOSTNAME}'
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- match:
|
- match:
|
||||||
selector: '{container="appdaemon"}'
|
selector: '{container="appdaemon"}'
|
||||||
|
|||||||
Reference in New Issue
Block a user