Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: add nec and facelive loki log #501

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion config_init/loki/promtail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,24 @@ scrape_configs:
job_name: magnus
__path__: /data/jumpserver/magnus/data/logs/*.log

- job_name: nec
static_configs:
- targets:
- localhost
labels:
component: nec
job_name: nec
__path__: /data/jumpserver/nec/data/logs/*.log

- job_name: facelive
static_configs:
- targets:
- localhost
labels:
component: facelive
job_name: facelive
__path__: /data/jumpserver/facelive/data/logs/*.log

- job_name: docker
docker_sd_configs:
- host: unix:///var/run/docker.sock
Expand All @@ -90,7 +108,8 @@ scrape_configs:
- name: name
values: [jms_web, jms_core, jms_koko, jms_lion,
jms_chen, jms_magnus, jms_xrdp, jms_razor,
jms_receptor]
jms_receptor, jms_nec, jms_facelive,
]
relabel_configs:
- source_labels: ["__meta_docker_container_name"]
regex: "/(.*)"
Expand Down