[ https://issues.apache.org/jira/browse/SOLR-16639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naoto Minami updated SOLR-16639: -------------------------------- Description: jq expr `select(.key | endswith(".completed"))` matches "\*.tasks.completed" too. But the format of "\*.tasks.completed" metrics is like bellow: "QUERY.httpShardHandler.threadPool.httpShardExecutor.tasks.completed":16, [https://github.com/apache/solr/blob/bf490f16b5e1acbbd4b01ec3aa1e5b035096716a/solr/prometheus-exporter/conf/solr-exporter-config.xml#L541] So, $object.value.count jq expr occurs jq parse error. I will fix this problem to add `select(.value | type=="object")` filter to jq expr. Note: I uses solr-exporter with -z parameter (as SolrCloud mode) was: jq expr `select(.key | endswith(".completed"))` matches "*.tasks.completed" too. But the format of "*.tasks.completed" metrics is like bellow: "QUERY.httpShardHandler.threadPool.httpShardExecutor.tasks.completed":16, [https://github.com/apache/solr/blob/bf490f16b5e1acbbd4b01ec3aa1e5b035096716a/solr/prometheus-exporter/conf/solr-exporter-config.xml#L541] So, $object.value.count jq expr occurs jq parse error. I will fix this problem to add `select(.value | type=="object")` filter to jq expr. Note: I uses solr-exporter with -z parameter (as SolrCloud mode) > solr-exporter metrics node_thread_pool_completed_total occurs jq parse error > ---------------------------------------------------------------------------- > > Key: SOLR-16639 > URL: https://issues.apache.org/jira/browse/SOLR-16639 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: contrib - prometheus-exporter > Affects Versions: main (10.0) > Reporter: Naoto Minami > Priority: Major > Labels: SolrCloud > Time Spent: 10m > Remaining Estimate: 0h > > jq expr `select(.key | endswith(".completed"))` matches "\*.tasks.completed" > too. But the format of "\*.tasks.completed" metrics is like bellow: > "QUERY.httpShardHandler.threadPool.httpShardExecutor.tasks.completed":16, > [https://github.com/apache/solr/blob/bf490f16b5e1acbbd4b01ec3aa1e5b035096716a/solr/prometheus-exporter/conf/solr-exporter-config.xml#L541] > So, $object.value.count jq expr occurs jq parse error. I will fix this > problem to add `select(.value | type=="object")` filter to jq expr. > > Note: > I uses solr-exporter with -z parameter (as SolrCloud mode) -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org