#Harvest allert: NFS latency > 5ms and disk_type = ssd

1 messages · Page 1 of 1 (latest)

verbal tulip
#

I'm not sure if this question belongs in this group. I apologieze if it's not.
In harvest, I try to create an alert that sends a message when:
node NFS latency > 5m, and the disk type is {eq. SAS, SSD or HDD}
I thought it would be something like (node_nfs_latency > 1) and disk_labels{type="ssd_nvm"}, but that does not work.

is this even possible? Does someone knwo how to get this from Harvest?

tranquil mica
#

hi @verbal tulip can you try something like this? (node_nfs_latency > 1) and on(node) disk_labels{type="SSD_NVM"}

verbal tulip
#

thanks @tranquil mica , unfortunatly, that is not working. When switching to builder mode, the metric disk_labels can not be found.

#

@tranquil mica my mistake. it does work! Thanks.

verbal tulip
#

@tranquil mica , may i ask you an extended question on this query.
The results of this query fires an allert for every disk. I

#

I am trying to get only an allert from the node, not all disk. So if node latency > x and disks are ssd, then alert on only the node. I am not sure if that is possible.