1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
local g = import '../g.libsonnet';
local prometheusQuery = g.query.prometheus;
local variables = import '../variables.libsonnet';
{
threadPoolActive:
prometheusQuery.new(
'$' + variables.datasource.name,
|||
elasticsearch_thread_pool_active_count{cluster=~"$cluster"}
|||
)
+ prometheusQuery.withLegendFormat('{{type}}'),
threadPoolRejections:
prometheusQuery.new(
'$' + variables.datasource.name,
|||
elasticsearch_thread_pool_rejected_count{cluster=~"$cluster"}
|||
)
+ prometheusQuery.withLegendFormat('{{name}} {{type}}'),
}
|