微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法从 kibana 查询指标数据?

如何解决无法从 kibana 查询指标数据?

我部署了 kibana 和 metricbeat,以便观察我在 AWS 中运行的应用程序的指标。我已根据此文档设置了 metricbeat:https://www.elastic.co/guide/en/beats/metricbeat/7.x/metricbeat-installation-configuration.html

但是当我打开 kibana 并单击 metric 时,它显示错误

enter image description here

我在 kibana 日志中看到以下错误消息。但是我该怎么做才能修复它。我找不到有关该错误的任何其他信息。

{
  "type": "error","@timestamp": "2021-03-01T11:04:22Z","tags": [],"pid": 6,"level": "error","error": {
    "message": "Internal Server Error","name": "Error","stack": "Error: Internal Server Error\n    at HapiResponseAdapter.toError (/usr/share/kibana/src/core/server/http/router/response_adapter.js:132:19)\n    at HapiResponseAdapter.toHapiResponse (/usr/share/kibana/src/core/server/http/router/response_adapter.js:86:19)\n    at HapiResponseAdapter.handle (/usr/share/kibana/src/core/server/http/router/response_adapter.js:81:17)\n    at Router.handle (/usr/share/kibana/src/core/server/http/router/router.js:164:34)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"
  },"url": {
    "protocol": null,"slashes": null,"auth": null,"host": null,"port": null,"hostname": null,"hash": null,"search": null,"query": {},"pathname": "/api/metrics/snapshot","path": "/api/metrics/snapshot","href": "/api/metrics/snapshot"
  },"message": "Internal Server Error"
}
  {
  "type": "response","tags": [
    "access:infra"
  ],"method": "post","statusCode": 500,"req": {
    "url": "/api/metrics/snapshot","headers": {
      "connection": "upgrade","host": "k8s-sidecaringress-acea015559-2114797975.ap-southeast-2.elb.amazonaws.com","content-length": "236","x-forwarded-for": "49.184.189.189","x-forwarded-proto": "http","x-forwarded-port": "80","x-amzn-trace-id": "Root=1-603cca36-1576439e3d29af9d00d15dc9","kbn-version": "7.10.1","user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/88.0.4324.192 Safari/537.36","content-type": "application/json","accept": "*/*","origin": "http://k8s-sidecaringress-acea015559-2114797975.ap-southeast-2.elb.amazonaws.com","referer": "http://k8s-sidecaringress-acea015559-2114797975.ap-southeast-2.elb.amazonaws.com/app/metrics/inventory?waffleFilter=(expression:%27%27,kind:kuery)&waffleTime=(currentTime:1614595986944,isAutoReloading:!f)&waffleOptions=(accountId:%27%27,autoBounds:!t,boundsOverride:(max:1,min:0),customMetrics:!(),customOptions:!(),groupBy:!(),legend:(palette:cool,reverseColors:!f,steps:10),metric:(type:cpu),nodeType:host,region:%27%27,sort:(by:name,direction:desc),view:map)","accept-encoding": "gzip,deflate","accept-language": "en-GB,en-US;q=0.9,en;q=0.8"
    },"remoteAddress": "192.168.34.49","userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML,view:map)"
  },"res": {
    "statusCode": 500,"responseTime": 56,"contentLength": 9
  },"message": "POST /api/metrics/snapshot 500 56ms - 9.0B"
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。