Skip to content

Commit

Permalink
fix(monitoring): fix log configuration for pushing to correct endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <[email protected]>
  • Loading branch information
brucellino committed May 18, 2024
1 parent 4a22acd commit 08aa82f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions grafana-agent/grafana-agent.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ variable "graf_agent_rel_url" {
variable "graf_agent_version" {
description = "Grafana Agent version to be used."
type = string
default = "0.40.3"
default = "0.40.4"
}

variable "scrape_interval" {
Expand Down Expand Up @@ -42,8 +42,8 @@ job "grafana-agent" {

task "agent" {
resources {
memory = 25
cpu = 25
memory = 125
cpu = 50
}
identity {
name = "vault"
Expand Down
7 changes: 4 additions & 3 deletions grafana-agent/grafana-agent.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metrics:
global:
scrape_interval: 60s
remote_write:
- url: {{ .Data.data.metrics_url }}/api/prom/push
- url: {{ .Data.data.metrics_url }}/push
basic_auth:
password: '{{ .Data.data.api_key }}'
username: '{{ .Data.data.metrics_id }}'
Expand Down Expand Up @@ -50,7 +50,8 @@ integrations:
- basic_auth:
password: '{{ .Data.data.api_key }}'
username: '{{ .Data.data.metrics_id }}'
url: '{{ .Data.data.metrics_url }}/api/prom/push'
url: {{ .Data.data.metrics_url }}/push

node_exporter:
enabled: true
# disable unused collectors
Expand All @@ -64,7 +65,7 @@ integrations:
netclass_ignored_devices: "^(veth.*|cali.*|[a-f0-9]{15})$"
netdev_device_exclude: "^(veth.*|cali.*|[a-f0-9]{15})$"
# disable tmpfs
filesystem_fs_types_exclude: "^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|tmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$"
filesystem_fs_types_exclude: "^(autofs|binfmt_misc|bpf|configfs|debugfs|devpts|devtmpfs|tmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$"
# drop extensive scrape statistics
relabel_configs:
- replacement: '{{ env "HOSTNAME" }}'
Expand Down

0 comments on commit 08aa82f

Please sign in to comment.