mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-20 23:46:23 +01:00
73afeaf510
### Describe Your Changes
- Use common compose.yaml file for all victorialogs setups to set
version in a single place and override it on demand for each agent and
protocol
- Replaced multiple victorialogs instances in HA setup with single setup
with `deploy.replica` parameter set
- Added fluentd setup
### Checklist
The following checks are **mandatory**:
- [ ] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).
(cherry picked from commit e75ae1b274
)
42 lines
969 B
YAML
42 lines
969 B
YAML
server:
|
|
http_listen_address: 0.0.0.0
|
|
http_listen_port: 9080
|
|
|
|
positions:
|
|
filename: /tmp/positions.yaml
|
|
|
|
clients:
|
|
- url: http://victorialogs:9428/insert/loki/api/v1/push?_stream_fields=instance,job,host,app
|
|
tenant_id: "0:0"
|
|
|
|
scrape_configs:
|
|
- job_name: system
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: varlogs
|
|
__path__: /var/log/*log
|
|
|
|
- job_name: syslog
|
|
syslog:
|
|
listen_address: 0.0.0.0:5140
|
|
relabel_configs:
|
|
- source_labels: [ '__syslog_message_hostname' ]
|
|
target_label: 'host'
|
|
- source_labels: [ '__syslog_message_app_name' ]
|
|
target_label: 'app'
|
|
- source_labels: [ '__syslog_message_proc_id' ]
|
|
target_label: 'pid'
|
|
|
|
|
|
- job_name: containers
|
|
pipeline_stages:
|
|
- docker: { }
|
|
static_configs:
|
|
- targets:
|
|
- localhost
|
|
labels:
|
|
job: containerlogs
|
|
__path__: /var/lib/docker/containers/*/*log
|