gpt4 book ai didi

kubernetes - Grafana仪表板不在Rancher UI中显示数据

转载 作者:行者123 更新时间:2023-12-02 12:14:55 25 4
gpt4 key购买 nike

我在Rancher UI中启用了对我的项目的监视,并且安装成功。但是,当我按工作量(例如nginx)单击“转到grafana”时,它将移至Grafana仪表板,但Grafana却不显示任何内容:0 CPU, 0 memory, 0 networking,...

  • 为什么没有数据?
  • 我怎么知道我的资源(工作量,服务,pod)的消耗配额?

  • 请看我的截图:

    enter image description here
    enter image description here
    非常感谢

    最佳答案

    Prometheus是使用Grafana的必要组件。

    您可以查看此博客文章:

    Kubernetes Monitoring with Prometheus, Grafana and Rancher

    Prometheus is an open-source application for monitoring systems and generating alerts. ... Prometheus will scrape targets at designated intervals and store the information in a time-series database.

    Grafana is also open source and runs as a web application. ... Grafana makes it easy to create graphs and assemble those graphs into dashboards.



    检查是否检查 Prometheus是否已打开以及其配置是否正确:

    Configuring Project Monitoring

    From the Global view, navigate to the project that you want to configure project monitoring.

    • Select Tools > Monitoring in the navigation bar.

    • Select Enable to show the Prometheus configuration options. Enter in your desired configuration options.

    • Click Save.



    还要检查以下设置:

    Prometheus Configuration

    • Enable Persistent Storage for Prometheus Whether or not to configure storage for Prometheus so that metrics can be retained even if the Prometheus pod fails.

    • Enable Persistent Storage for Grafana Whether or not to configure storage for Grafana so that the Grafana dashboards and configuration can be retained even if the Grafana pod fails.

    关于kubernetes - Grafana仪表板不在Rancher UI中显示数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58046637/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com