vagrant user de07901bc7 MAJ
2025-12-23 13:29:30 +01:00

63 lines
1.4 KiB
YAML

server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://192.168.56.61:3100/loki/api/v1/push
scrape_configs:
- job_name: apache_access
static_configs:
- targets: [localhost]
labels:
job: apache_access
host: archiweb_app
__path__: /var/log/apache2/access.log
- job_name: apache_error
static_configs:
- targets: [localhost]
labels:
job: apache_error
host: archiweb_app
__path__: /var/log/apache2/error.log
- job_name: tomcat_catalina
static_configs:
- targets: [localhost]
labels:
job: tomcat
host: archiweb_app
type: catalina
__path__: /opt/tomcat/logs/catalina*.log
- job_name: tomcat_localhost
static_configs:
- targets: [localhost]
labels:
job: tomcat
host: archiweb_app
type: localhost
__path__: /opt/tomcat/logs/localhost*.log
- job_name: tomcat_access
static_configs:
- targets: [localhost]
labels:
job: tomcat
host: archiweb_app
type: access
__path__: /opt/tomcat/logs/localhost_access_log*.txt
- job_name: tomcat_out
static_configs:
- targets: [localhost]
labels:
job: tomcat
host: archiweb_app
type: out
__path__: /opt/tomcat/logs/catalina.out