# The context.thresholdOf, context.metricOf and context.valueOf not working in inventory alert

**URL:** <https://discuss.elastic.co/t/the-context-thresholdof-context-metricof-and-context-valueof-not-working-in-inventory-alert/250094>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [September 27, 2020, 4:17pm UTC](https://discuss.elastic.co/t/the-context-thresholdof-context-metricof-and-context-valueof-not-working-in-inventory-alert/250094 "2020-09-27T16:17:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 28, 2020, 3:17pm UTC](https://discuss.elastic.co/t/the-context-thresholdof-context-metricof-and-context-valueof-not-working-in-inventory-alert/250094/4 "2020-09-28T15:17:14Z")

</div>

Looks like some of the features I was looking at in 7.9.2 are also in 7.8.1

Perhaps, You could try this.

Go To Alert and Actions and create a Metric Threshold alert this is the more General version of the Inventory Alert.

 ![Screen Shot 2020-09-28 at 8.13.33 AM](https://us1.discourse-cdn.com/elastic/original/3X/7/2/7276910d792bb6a797a1e4c7edf4b973714ad5d1.png)

Then you could try Create Alert Per and put your `Instance` field in that. It will need to be a Keyword Type

 ![Screen Shot 2020-09-28 at 8.10.17 AM](https://us1.discourse-cdn.com/elastic/original/3X/9/e/9e6faec0fcda6a290ce75cc8398b18f527791cbc.png)

That should generate alerts by Instance and then that instance should be part of the alert context.

---

_[View the full topic](https://discuss.elastic.co/t/the-context-thresholdof-context-metricof-and-context-valueof-not-working-in-inventory-alert/250094)._
