71 lines
1.6 KiB
YAML
71 lines
1.6 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: apache
|
|
__path__: /var/log/apache2/access.log
|
|
|
|
- job_name: apache_error
|
|
static_configs:
|
|
- targets: [localhost]
|
|
labels:
|
|
job: apache_error
|
|
host: apache
|
|
__path__: /var/log/apache2/error.log
|
|
|
|
- job_name: apache_other_vhosts
|
|
static_configs:
|
|
- targets: [localhost]
|
|
labels:
|
|
job: apache_other_vhosts
|
|
host: apache
|
|
__path__: /var/log/apache2/other_vhosts_access.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
|