VictoriaMetrics/deployment/docker/victorialogs/filebeat/compose.yml
Andrii Chubatiuk 1731c0eabf
app/vlinsert: support getting _msg_field, _time_field, _stream_fields and _ignore_fields from headers
*  Many collectors don't support forwarding url query params to the remote system. It makes impossible to define stream fields for it. Workaround with proxy between VictoriaLogs and log shipper is too complicated solution.

* This commit adds the following changes:
 * Adds fallback to to headers params, if query param is empty for:
     _msg_field -> VL-Msg-Field
    _stream_fields -> VL-Stream-Fields
    _ignore_fields -> VL-Ignore-Fields
    _time_field -> VL-Time-Field
 * removes deprecations from victorialogs compose files, added more
output format examples for logstash, telegraf, fluent-bit

 related issue: https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5310
2024-09-03 17:43:26 +02:00

58 lines
1.7 KiB
YAML

services:
filebeat-victorialogs:
image: docker.elastic.co/beats/filebeat:8.8.1
restart: on-failure
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
source: /var/lib/docker/containers/
target: /var/lib/docker/containers/
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
user: root
command:
- "--strict.perms=false"
depends_on: [ victorialogs ]
beat-exporter-victorialogs:
image: trustpilot/beat-exporter:0.4.0
command:
- -beat.uri=http://filebeat-victorialogs:5066
victorialogs:
image: docker.io/victoriametrics/victoria-logs:v0.28.0-victorialogs
volumes:
- victorialogs-filebeat-docker-vl:/vlogs
ports:
- '9428:9428'
command:
- -storageDataPath=/vlogs
- -loggerFormat=json
grafana:
container_name: grafana
image: grafana/grafana:9.2.7
depends_on:
- "victoriametrics"
ports:
- 3000:3000
volumes:
- victorialogs-filebeat-docker-grafana:/var/lib/grafana
- ./../../provisioning/:/etc/grafana/provisioning/
- ./../../../../dashboards/victoriametrics.json:/var/lib/grafana/dashboards/vm.json
- ./../../../../dashboards/victorialogs.json:/var/lib/grafana/dashboards/vl.json
victoriametrics:
image: victoriametrics/victoria-metrics:latest
ports:
- '8428:8428'
command:
- -storageDataPath=/vmsingle
- -promscrape.config=/promscrape.yml
- -loggerFormat=json
volumes:
- victorialogs-filebeat-docker-vm:/vmsingle
- ./scrape.yml:/promscrape.yml
volumes:
victorialogs-filebeat-docker-vl:
victorialogs-filebeat-docker-vm:
victorialogs-filebeat-docker-grafana: