Skip to content

Metric Query Error

1 Querying Metrics Returns "query error: tenant: ; requestURI: /select/3/guance/api/v1/query; auth error: cannot parse accountID from "": strconv.ParseUint: parsing "": invalid syntax"

Error when querying metrics

Connect to the database via MySQL in the launcher pod and execute the following SQL:

use df_core;
update main_influx_instance set configJSON='{"write": {"host": "http://guancedb-cluster-guance-insert.middleware:8480"}, "read": {"host": "http://guancedb-cluster-guance-select.middleware:8481"}}' where id=1;

Restart all Kodo services:

kubectl delete pod -n forethought-kodo

2 Kodo Reports "query error: db config pwd is null:ro" in Metrics Management

In Metrics Management, data is missing. Check the Kodo interface response via F12; it returns 'query error: db config pwd is null:ro'.

Solution:

Use the following SQL to check the storage engine instance. If the storage engine has been switched to Doris, note that the metric value in the datastore field should be guancedb.

select * from main_es_instance;

If the value of this field is not guancedb, modify it to guancedb via SQL.

3 Metric Query Error

Problem description: Metric query returns query error: the query is too broad or the time range is too long, resulting in too many rows

Solution:

Add or modify the startup parameter -search.maxQueryUniqueTimeseries for the GuanceDB for metrics select component:

--search.maxQueryUniqueTimeseries=3000000

Feedback

Is this page helpful?