Migrate host volumes to NFS & consolidate.
This commit is contained in:
@@ -23,7 +23,6 @@ job "vector" {
|
||||
ports = ["api", "metrics"]
|
||||
volumes = [
|
||||
"/var/run/docker.sock:/var/run/docker.sock:ro",
|
||||
"/var/log/glusterfs:/var/log/glusterfs:ro",
|
||||
"/var/log/journal:/var/log/journal:ro",
|
||||
"/etc/machine-id:/etc/machine-id:ro",
|
||||
]
|
||||
@@ -98,16 +97,6 @@ if length(result) > 0 {
|
||||
.host = del(.label."com.hashicorp.nomad.node_name")
|
||||
'''
|
||||
|
||||
[sources.glusterfs_raw]
|
||||
type = "file"
|
||||
include = [ "/var/log/glusterfs/**/*.log" ]
|
||||
[transforms.glusterfs_transformed]
|
||||
type = "remap"
|
||||
inputs = [ "glusterfs_raw" ]
|
||||
source = '''
|
||||
.job_name = .file
|
||||
'''
|
||||
|
||||
[sources.journald_raw]
|
||||
type = "journald"
|
||||
[transforms.journald_transformed]
|
||||
@@ -122,7 +111,6 @@ if length(result) > 0 {
|
||||
inputs = [
|
||||
"vector_transformed",
|
||||
"docker_transformed",
|
||||
"glusterfs_transformed",
|
||||
"journald_transformed",
|
||||
]
|
||||
endpoint = "http://[[ range service "loki" ]][[ .Address ]]:[[ .Port ]][[ end ]]"
|
||||
|
||||
Reference in New Issue
Block a user