霍克数据访问错误

hawkular data accessing error

我们正在通过以下命令获取指标详细信息:

curl --insecure --cacert ca.crt -H "Authorization: Bearer 2XwxlTO_ls_HqpwTe5OWhGwuTu5qEzFxVGIhe761V7A" -H "Hawkular-Tenant: openshift-infra" -X GET https://hawkular-metrics.example.com/hawkular/metrics/metrics

我们没有使用以下命令获取数据:

curl --insecure --cacert ca.crt -H "Authorization: Bearer 2XwxlTO_ls_HqpwTe5OWhGwuTu5qEzFxVGIhe761V7A" -H "Hawkular-Tenant: openshift-infra" -X GET https://hawkular-metrics.example.com/hawkular/metrics/counter/data?tags=descrpitor_name:cpu/usage,pod_name:hawkular-cassandra

我们遇到以下错误:

"errorMsg":"RESTEASY003210: Could not find resource for full path: https://hawkular-metrics.example.com/hawkular/metrics/counter"

我认为您打错了 URL,counters 处有一个 s。请参阅文档:http://www.hawkular.org/docs/rest/rest-metrics.html#GET__counters_data

顺便说一句,我认为您必须至少为您的查询提供 bucketsbucketDuration 参数,否则您会收到另一个错误。