forked from ISTI-ansible-roles/ansible-roles
fixed jq expresion
This commit is contained in:
parent
a56fc7b16b
commit
d2d855ab06
|
@ -1636,7 +1636,8 @@
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
</str>
|
</str>
|
||||||
<!-- Custom metrics -->
|
|
||||||
|
<!-- Custom metrics -->
|
||||||
<str>
|
<str>
|
||||||
.metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |
|
.metrics | to_entries | .[] | select(.key | startswith("solr.core.")) as $parent |
|
||||||
$parent.key | split(".") as $parent_key_items |
|
$parent.key | split(".") as $parent_key_items |
|
||||||
|
@ -1649,12 +1650,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.count) as $value |
|
($object.value.count) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_count",
|
name: "solr_metrics_core_query_count",
|
||||||
type: "COUNTER",
|
type: "COUNTER",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1687,14 +1688,14 @@
|
||||||
(if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |
|
(if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |
|
||||||
(if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |
|
(if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.1minRate) as $value |
|
($object.value."1minRate") as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_1minrate",
|
name: "solr_metrics_core_query_1minrate",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1707,14 +1708,14 @@
|
||||||
(if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |
|
(if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |
|
||||||
(if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |
|
(if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.5minRate) as $value |
|
($object.value."5minRate") as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_5minrate",
|
name: "solr_metrics_core_query_5minrate",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1727,14 +1728,14 @@
|
||||||
(if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |
|
(if $parent_key_item_len == 5 then $parent_key_items[4] else "" end) as $replica |
|
||||||
(if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |
|
(if $parent_key_item_len == 5 then ($collection + "_" + $shard + "_" + $replica) else $core end) as $core |
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.15minRate) as $value |
|
($object.value."15minRate") as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_15minrate",
|
name: "solr_metrics_core_query_15minrate",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1749,12 +1750,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.min_ms) as $value |
|
($object.value.min_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_min_ms",
|
name: "solr_metrics_core_query_min_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1769,12 +1770,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.max_ms) as $value |
|
($object.value.max_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_max_ms",
|
name: "solr_metrics_core_query_max_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1789,12 +1790,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.mean_ms) as $value |
|
($object.value.mean_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_mean_ms",
|
name: "solr_metrics_core_query_mean_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1809,12 +1810,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.median_ms) as $value |
|
($object.value.median_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_median_ms",
|
name: "solr_metrics_core_query_median_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1829,12 +1830,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.stddev_ms) as $value |
|
($object.value.stddev_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_stddev_ms",
|
name: "solr_metrics_core_query_stddev_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1849,12 +1850,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.p75_ms) as $value |
|
($object.value.p75_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_p75_ms",
|
name: "solr_metrics_core_query_p75_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1869,12 +1870,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.p95_ms) as $value |
|
($object.value.p95_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_p95_ms",
|
name: "solr_metrics_core_query_p95_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1889,12 +1890,12 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.p99_ms) as $value |
|
($object.value.p99_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_p99_ms",
|
name: "solr_metrics_core_query_p99_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<str>
|
<str>
|
||||||
|
@ -1909,16 +1910,15 @@
|
||||||
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
$parent.value | to_entries | .[] | select(.key | endswith("select.requestTimes")) as $object |
|
||||||
($object.value.p999_ms) as $value |
|
($object.value.p999_ms) as $value |
|
||||||
{
|
{
|
||||||
name: "solr_metrics_core_query_p999_ms",
|
name: "solr_metrics_core_query_p999_ms",
|
||||||
type: "GAUGE",
|
type: "GAUGE",
|
||||||
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
help: "See following URL: https://lucene.apache.org/solr/guide/metrics-reporting.html",
|
||||||
label_names: ["core", "collection", "shard", "replica"],
|
label_names: ["core", "collection", "shard", "replica"],
|
||||||
label_values: [$core, $collection, $shard, $replica],
|
label_values: [$core, $collection, $shard, $replica],
|
||||||
value: $value
|
value: $value
|
||||||
}
|
}
|
||||||
</str>
|
</str>
|
||||||
<!-- end of custom metrics -->
|
<!-- end of custom metrics -->
|
||||||
|
|
||||||
</arr>
|
</arr>
|
||||||
</lst>
|
</lst>
|
||||||
</metrics>
|
</metrics>
|
||||||
|
|
Loading…
Reference in New Issue