mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00: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
)
25 lines
613 B
Text
25 lines
613 B
Text
input {
|
|
file {
|
|
path => "/var/lib/docker/containers/*/*.log"
|
|
start_position => "beginning"
|
|
type => "docker"
|
|
sincedb_path => "/dev/null"
|
|
codec => "json"
|
|
add_field => {
|
|
"path" => "%{[@metadata][path]}"
|
|
}
|
|
}
|
|
}
|
|
|
|
output {
|
|
http {
|
|
url => "http://victorialogs:9428/insert/jsonline?_stream_fields=host.name,stream&_msg_field=log&_time_field=time"
|
|
format => "json"
|
|
http_method => "post"
|
|
}
|
|
http {
|
|
url => "http://victorialogs-2:9428/insert/jsonline?_stream_fields=host.name,stream&_msg_field=log&_time_field=time"
|
|
format => "json"
|
|
http_method => "post"
|
|
}
|
|
}
|