mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:39:26 +08:00
27 lines
601 B
YAML
27 lines
601 B
YAML
server:
|
|
http_listen_port: 9080 #云服务器需开放9080端口
|
|
grpc_listen_port: 0
|
|
|
|
positions:
|
|
filename: /opt/promtail/positions.yaml #positions存放路径在promtail工具地址下
|
|
|
|
clients:
|
|
- url: http://127.0.0.1:3100/loki/api/v1/push #修改为loki服务器IP
|
|
|
|
scrape_configs:
|
|
- job_name: web
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: "web"
|
|
__path__: {$LOG_PATH}/web_nohup.out
|
|
|
|
- job_name: portal
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: "HSJ_portal"
|
|
__path__: /opt/cwy8.32/product/module/P/PORTAL/nohup.out
|