VictoriaLogs-Grafana
Bare bones Grafana provisioned with VictoriaLogs
VictoriaLogs
victoriametrics/victoria-logs:latest
Just deployed
/victoria-logs-data
Grafana
Battlesquid/railway-victorialogs-grafana
Just deployed
/grafana/data
Overview
Bare bones template to set up a Grafana instance provisioned with a VictoriaLogs data source.
A basic starter for sending logs to VictoriaLogs (replace [VICTORIALOGS_INSTANCE]
and [BASE_64_AUTH]
with your actual instance url and base-64 encoded username:password
):
curl --request POST \
--url 'https://[VICTORIALOGS_INSTANCE]/insert/jsonline?_stream_fields=stream&_time_field=date&_msg_field=log.message' \
--header 'Authorization: Basic [BASE_64_AUTH]' \
--header 'Content-Type: application/stream+json' \
--data '{ "log": { "level": "info", "message": "hello world" }, "date": "0", "stream": "stream1" }
{ "log": { "level": "error", "message": "oh no!" }, "date": "0", "stream": "stream1" }
{ "log": { "level": "info", "message": "hello world" }, "date": "0", "stream": "stream2" }'
Read more about VictoriaLogs data ingestion options here.
Documentation
The full list of CLI flags for VictoriaLogs can be found here.
The provisioned Grafana configuration can be found here.
Template Content
VictoriaLogs
victoriametrics/victoria-logs:latestVL_USERNAME
The username for your victorialogs instance
GF_SECURITY_ADMIN_USER
Username for your grafana instance.
GF_DEFAULT_INSTANCE_NAME
The name of your grafana instance.