コンテンツにスキップ

メトリクスクエリエラー

1 メトリクスクエリで「query error: tenant: ; requestURI: /select/3/guance/api/v1/query; auth error: cannot parse accountID from "": strconv.ParseUint: parsing "": invalid syntax」エラー

メトリクスクエリ時にエラーが発生します。

launcher pod 内で mysql を介してデータベースに接続し、以下の 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;

kodo の全サービスを再起動します。

kubectl delete pod -n forethought-kodo

2 メトリクス管理で kodo が「query error: db config pwd is null:ro」エラー

メトリクス管理でデータが途切れます。F12 で確認すると、kodo インターフェースの Response に「query error: db config pwd is null:ro」が返されています。

解決策: 以下の SQL でストレージエンジンインスタンスを確認してください。Doris に切り替えた後の場合、datastore フィールドの metric 値が guancedb であることに注意してください

select * from main_es_instance;

このフィールドの値が guancedb でない場合は、SQL で guancedb に修正してください。

3 メトリクスクエリエラー

問題の説明:メトリクスクエリで query error: the query is too broad or the time range is too long, resulting in too many rows が発生します。

問題の解決方法:

GuanceDB for metrics select コンポーネントの起動パラメータ -search.maxQueryUniqueTimeseries を追加または変更します。

--search.maxQueryUniqueTimeseries=3000000

フィードバック

このページは役に立ちましたか?