0

I wanted to create a Alerting Policy in Stackdriver on "Volume Free Space" to get warned if the disk is almost full. So I used the Metric Threshold alert. However when I enable this check I get warnings straight away for a couple small partitions that are also on that machine. It seems I cannot limit it to only the main device.

A warning looks like this:

Disk usage for server-website website with metric labels {device=tmpfs state===free} is below the threshold of 5368709120 with a value of 170569728.

Can I prevent alerts for these partitions (like tmpfs) or can I completely exclude these partitions from being reported to Stackdriver at all? It seems the Stackdriver agent automatically generates the collectd config.

1 Answer 1

1

When creating the alerting policy you need to select "Volume Usage (agent)" as a metric, which will show you Sub Resources and let you choose the partition you need.

1
  • The allows you to specify the threshold in relative numbers instead of absolute, but it works.
    – Mark
    Feb 10, 2017 at 8:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .