Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instance exclusions if virtual/container or just hostname pattern? #445

Open
juju4 opened this issue Dec 15, 2024 · 1 comment
Open

Instance exclusions if virtual/container or just hostname pattern? #445

juju4 opened this issue Dec 15, 2024 · 1 comment

Comments

@juju4
Copy link

juju4 commented Dec 15, 2024

Some rules like HostPhysicalComponentTooHot or HostClockNotSynchronising should exclude virtual machines and containers.
Is this only possible with host pattern?

This does not work for me

name: HostPhysicalComponentTooHot
expr: ((node_hwmon_temp_celsius{nodename!~"prefix1*",nodename!~"prefix2*"} * ignoring (label) group_left (instance, job, node, sensor) node_hwmon_sensor_label{label!="tctl",nodename!~"prefix1*",nodename!~"prefix2*"} > 75)) * on (instance) group_left (nodename) node_uname_info{nodename=~".+"}

Thanks

@juju4
Copy link
Author

juju4 commented Dec 22, 2024

for now, I silenced alerts at alertmanager level

routes:
[...]
    - receiver: "null"
      match:
        alertname: HostOutOfMemory
        nodename: hostname1
      continue: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant