# How to use 'precision\_threshold' in TSVB?

**URL:** <https://discuss.elastic.co/t/how-to-use-precision-threshold-in-tsvb/229904>\
**Category:** Kibana\
**Created:** [April 27, 2020, 6:05am UTC](https://discuss.elastic.co/t/how-to-use-precision-threshold-in-tsvb/229904 "2020-04-27T06:05:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [April 27, 2020, 6:05am UTC](https://discuss.elastic.co/t/how-to-use-precision-threshold-in-tsvb/229904/1 "2020-04-27T06:05:00Z")

</div>

I am using cardinality aggregation in TSVB.  
In metric graph, 'precision threshold' was used in 'json input'. like this...  
{  
"precision\_threshold":40000  
}

How to use it in TSVB?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [April 27, 2020, 7:42pm UTC](https://discuss.elastic.co/t/how-to-use-precision-threshold-in-tsvb/229904/2 "2020-04-27T19:42:24Z")

</div>

> [@Yungyoung\_Ok](#):
>
> metric graph

Do you mean the metrics-visualization?

If so, that corresponding option (to inject custom json-params) does not exist in TSVB.

---

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [April 28, 2020, 1:19am UTC](https://discuss.elastic.co/t/how-to-use-precision-threshold-in-tsvb/229904/3 "2020-04-28T01:19:16Z")

</div>

When using cardinality aggs in TSVB, I want to know how to use the 'precision\_threshold' option.  
Because the default value of precision\_threshold is used, the cardinality result value has a lot of errors.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 26, 2020, 1:19am UTC](https://discuss.elastic.co/t/how-to-use-precision-threshold-in-tsvb/229904/4 "2020-05-26T01:19:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
