File tree Expand file tree Collapse file tree
services/nomad/monitoring Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ job "vmlogs" {
2+ name = " vmlogs"
3+ type = " service"
4+ namespace = " monitoring"
5+ datacenters = [" VOID" ]
6+
7+ group "vmlogs" {
8+ count = 1
9+
10+ network {
11+ mode = " bridge"
12+ port "http" { static = 9428 }
13+ port "syslog" { static = 514 }
14+ }
15+
16+ service {
17+ name = " vmlogs"
18+ port = " http"
19+ meta {
20+ nginx_enable = " true"
21+ nginx_names = " vmlogs.voidlinux.org"
22+ }
23+ }
24+
25+ volume "vmlogs_data" {
26+ type = " host"
27+ source = " vmlogs_data"
28+ read_only = " false"
29+ }
30+
31+ task "vmlogs" {
32+ driver = " docker"
33+
34+ config {
35+ image = " docker.io/victoriametrics/victoria-logs:v1.15.0-victorialogs"
36+ args = [
37+ " -storageDataPath=/data" ,
38+ " -syslog.listenAddr.tcp=:514" ,
39+ " -syslog.listenAddr.udp=:514" ,
40+ ]
41+ }
42+
43+ volume_mount {
44+ volume = " vmlogs_data"
45+ destination = " /data"
46+ }
47+ }
48+ }
49+ }
You can’t perform that action at this time.
0 commit comments