feat: Adds option to expose ports for node and cadvisor service
This commit is contained in:
parent
70719dbee8
commit
cd42c64544
@ -12,6 +12,9 @@ ENABLE_BACKUPS=true
|
|||||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.promtail.yml"
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.promtail.yml"
|
||||||
# LOKI_PUSH_URL=https://loki.monitoring.example.org/loki/api/v1/push
|
# LOKI_PUSH_URL=https://loki.monitoring.example.org/loki/api/v1/push
|
||||||
|
|
||||||
|
## Expose node and cadvisor ports instead of traefik
|
||||||
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.expose-ports.yml"
|
||||||
|
|
||||||
# Monitoring Server
|
# Monitoring Server
|
||||||
#
|
#
|
||||||
## Prometheus
|
## Prometheus
|
||||||
|
@ -47,6 +47,13 @@ Where gathering.org is the node you want to gather metrics from.
|
|||||||
- cadvisor.monitoring.gathering.org
|
- cadvisor.monitoring.gathering.org
|
||||||
- node.monitoring.gathering.org
|
- node.monitoring.gathering.org
|
||||||
|
|
||||||
|
### Expose node and cadvisor via ports instead of traefik
|
||||||
|
|
||||||
|
In case you have no traefik running on the machine, you can expose the ports directly by uncommenting the following line:
|
||||||
|
```
|
||||||
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.expose-ports.yml"
|
||||||
|
```
|
||||||
|
|
||||||
## Setup Metrics Browser
|
## Setup Metrics Browser
|
||||||
|
|
||||||
|
|
||||||
@ -85,7 +92,6 @@ Where gathering.org is the node you want to gather metrics from.
|
|||||||
| Cadvisor | traefik basic-auth | cadvisor.monitoring.example.org |
|
| Cadvisor | traefik basic-auth | cadvisor.monitoring.example.org |
|
||||||
| Node Exporter | traefik basic-auth | node.monitoring.example.org |
|
| Node Exporter | traefik basic-auth | node.monitoring.example.org |
|
||||||
|
|
||||||
|
|
||||||
### Logging from a docker host to loki server without anything else
|
### Logging from a docker host to loki server without anything else
|
||||||
|
|
||||||
```
|
```
|
||||||
|
13
compose.expose-ports.yml
Normal file
13
compose.expose-ports.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
ports:
|
||||||
|
- "9100:9100"
|
||||||
|
deploy:
|
||||||
|
|
||||||
|
cadvisor:
|
||||||
|
ports:
|
||||||
|
- "9101:8080"
|
||||||
|
deploy:
|
Loading…
x
Reference in New Issue
Block a user