Hey Guys,
I have the following question. With Promtail it is possible to disable the HTTP/GRPC server so that it does not expose by default endpoints on the Internet (Configuration | Grafana Loki documentation). After a default Loki installation (docker-compose and loki config attached), Loki exposes on e.g. $IP:3100/metrics log data. Is there currently an option to disable this behavior in Loki itself? Thanks a lot in advance!
docker-compose.yml:
---
version: "3.8"
services:
loki:
image: grafana/loki:2.6.0
restart: unless-stopped
command: -config.file=/etc/loki/local-config.yaml
networks:
- loki
ports:
- 3100:3100
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
networks:
- loki
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.entrypoints=websecure"
- "traefik.http.routers.grafana.rule=Host(`$address`)"
- "traefik.http.routers.grafana.tls=true"
- "traefik.http.routers.grafana.tls.certresolver=default"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.docker.network=traefik_web"
networks:
web:
external:
name: traefik_web
loki:
loki-config.yml (mounted to local-config.yaml in my docker container):
---
auth_enabled: false
server: (setting "disable: true" has not worked)
http_listen_port: 3100
grpc_listen_port: 9096
common:
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
instance_addr: 127.0.0.1
kvstore:
store: inmemory
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
ruler:
alertmanager_url: http://localhost:9093
analytics:
reporting_enabled: false