You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to enable the ram_in_use alarm for all hosts except for hosts containing data in their hostnames. Until v1.44.3 I was using the following alarm config and the ram_in_use alarm was applied to all nodes except the ones containing the substring data in their hostname as expected.
alarm: ram_in_use
on: system.ram
class: Utilization
type: System
component: Memory
os: linux
hosts: !*data* *
calc: $used * 100 / ($used + $cached + $free + $buffers)
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (80) : (90))
crit: $this > (($status == $CRITICAL) ? (90) : (98))
delay: down 15m multiplier 1.5 max 1h
summary: System memory utilization
info: System memory utilization
to: sysadmin
For v1.45.1 I switched to the new syntax and my alarm config now looks like the following:
alarm: ram_in_use
on: system.ram
class: Utilization
type: System
component: Memory
host labels: _os=linux _hostname=!*data* *
calc: $used * 100 / ($used + $cached + $free + $buffers)
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (80) : (90))
crit: $this > (($status == $CRITICAL) ? (90) : (98))
delay: down 15m multiplier 1.5 max 1h
summary: System memory utilization
info: System memory utilization
to: sysadmin
and now the ram_in_use alarm is applied to all nodes including the ones that contain the substring data in their hostnames.
Bug description
I want to enable the ram_in_use alarm for all hosts except for hosts containing
data
in their hostnames. Until v1.44.3 I was using the following alarm config and the ram_in_use alarm was applied to all nodes except the ones containing the substring data in their hostname as expected.For v1.45.1 I switched to the new syntax and my alarm config now looks like the following:
and now the ram_in_use alarm is applied to all nodes including the ones that contain the substring data in their hostnames.
Expected behavior
I expect the simple pattern used in the host labels config property to behave as described in https://learn.netdata.cloud/docs/developer-and-contributor-corner/libnetdata/simple-patterns.
Steps to reproduce
host labels: _hostname=!*xxxx* *
.Installation method
kickstart.sh
System info
Netdata build info
Additional info
No response
The text was updated successfully, but these errors were encountered: