flink-streaming-platform-web/docs/tristan-deploy-use/0.1-log-config.yaml
2025-03-28 17:52:09 +08:00

26 lines
607 B
YAML

---
# loki
apiVersion: v1
kind: ConfigMap
metadata:
name: loki-promtail
namespace: bigdata-sync
data:
config.yaml: |
server:
disable: true
positions:
filename: /mnt/promtail-positions.yaml
clients:
- url: http://loki.logging-loki/loki/api/v1/push
scrape_configs:
- job_name: bigdata-sync
static_configs:
- targets:
- localhost
labels:
job: bigdata-sync
__path__: /mnt/**/*.log
environment: ${ENVIRONMENT_NAME}
replicaset: ${REPLICASET_NAME}
pod: ${POD_NAME}