Rise pids_limit for vector agent

This commit is contained in:
Daniel Berteaud 2024-03-28 09:39:59 +01:00
parent de28167ad8
commit 7b9a1ef9e7
6 changed files with 34 additions and 4 deletions

View File

@ -177,7 +177,7 @@ _EOT
image = "[[ $c.image ]]"
userns_mode = "host"
readonly_rootfs = true
pids_limit = 200
pids_limit = 1000
args = [
"--watch-config",
"--config", "/local/vector.yml",

View File

@ -7,6 +7,8 @@ job "monitoring-agent" {
priority = 60
type = "system"
# This group will collect logs from the allocation running on the node
@ -45,8 +47,12 @@ job "monitoring-agent" {
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${node.unique.name}"
datacenter = "${NOMAD_DC}"
group = "${NOMAD_GROUP_NAME}"
job = "${NOMAD_JOB_NAME}"
namespace = "${NOMAD_NAMESPACE}"
node = "${node.unique.name}"
region = "${NOMAD_REGION}"
}
connect {
@ -299,7 +305,7 @@ _EOT
image = "danielberteaud/vector:0.37.0-1"
userns_mode = "host"
readonly_rootfs = true
pids_limit = 200
pids_limit = 1000
args = [
"--watch-config",
"--config", "/local/vector.yml",
@ -438,8 +444,12 @@ _EOT
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${node.unique.name}"
datacenter = "${NOMAD_DC}"
group = "${NOMAD_GROUP_NAME}"
job = "${NOMAD_JOB_NAME}"
namespace = "${NOMAD_NAMESPACE}"
node = "${node.unique.name}"
region = "${NOMAD_REGION}"
}
}

View File

@ -4,6 +4,8 @@ job "monitoring-exporters" {
region = "global"
# Run exporters. Use a separated job so exporters can run in a distinct node_pool
group "exporters" {

View File

@ -1,7 +1,7 @@
FROM danielberteaud/alpine:24.3-1 AS builder
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ARG PING_EXPORTER_VERSION=1.1.1
ARG PING_EXPORTER_VERSION=1.1.2
ADD https://github.com/czerwonk/ping_exporter/releases/download/${PING_EXPORTER_VERSION}/ping_exporter_${PING_EXPORTER_VERSION}_linux_amd64.tar.gz /tmp
ADD https://github.com/czerwonk/ping_exporter/releases/download/${PING_EXPORTER_VERSION}/ping_exporter_${PING_EXPORTER_VERSION}_checksums.txt /tmp

View File

@ -5,6 +5,8 @@ job "monitoring-services" {
region = "global"
# Metrics is running prometheus
group "metrics-server" {
@ -33,8 +35,12 @@ job "monitoring-services" {
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${NOMAD_ALLOC_INDEX}"
datacenter = "${NOMAD_DC}"
group = "${NOMAD_GROUP_NAME}"
job = "${NOMAD_JOB_NAME}"
namespace = "${NOMAD_NAMESPACE}"
node = "${node.unique.name}"
region = "${NOMAD_REGION}"
}
connect {
@ -1390,8 +1396,12 @@ _EOT
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${NOMAD_ALLOC_INDEX}"
datacenter = "${NOMAD_DC}"
group = "${NOMAD_GROUP_NAME}"
job = "${NOMAD_JOB_NAME}"
namespace = "${NOMAD_NAMESPACE}"
node = "${node.unique.name}"
region = "${NOMAD_REGION}"
}
connect {
@ -1747,8 +1757,12 @@ _EOT
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${NOMAD_ALLOC_INDEX}"
datacenter = "${NOMAD_DC}"
group = "${NOMAD_GROUP_NAME}"
job = "${NOMAD_JOB_NAME}"
namespace = "${NOMAD_NAMESPACE}"
node = "${node.unique.name}"
region = "${NOMAD_REGION}"
}
connect {
@ -2049,8 +2063,12 @@ _EOT
meta {
metrics-port = "${NOMAD_HOST_PORT_metrics}"
alloc = "${NOMAD_ALLOC_INDEX}"
datacenter = "${NOMAD_DC}"
group = "${NOMAD_GROUP_NAME}"
job = "${NOMAD_JOB_NAME}"
namespace = "${NOMAD_NAMESPACE}"
node = "${node.unique.name}"
region = "${NOMAD_REGION}"
}
connect {

View File

@ -37,7 +37,7 @@ monitoring:
# Ping exporter can ping external hosts and expose stats to prometheus
ping:
# Version of the exporter to use
version: 1.1.1
version: 1.1.2
# Docker image to use
image: '[[ .docker.repo ]]ping-exporter:[[ .monitoring.exporters.ping.version ]]-1'
# Custom env var to set in the container