gpt4 book ai didi

customization - 将 custom.ini 与 Grafana 结合使用

转载 作者:行者123 更新时间:2023-12-04 03:52:34 31 4
gpt4 key购买 nike

我正在尝试为我的 Grafana 安装使用自定义文件 ( custom.ini )。不幸的是,这不起作用。

我做了什么:

  • 安装了一台装有 CentOS 7 的虚拟机
  • 添加了 Grafana Yum Repo,如 official documentation 中所述
  • 安装了 Grafana
    yum install grafana
  • 然后我创建了一个简单的自定义文件
    vi /etc/grafana/custom.ini
  • 有了这个内容
    default_theme = light
  • 重启 Grafana
    systemctl restart grafana-server

  • 不幸的是,主题并没有从黑暗变为光明。

    如果我取消注释 /etc/grafana/grafana.ini 中的同一行那么它工作正常。

    有什么建议?非常感谢

    最佳答案

    ...the parameter is /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini, also the custom.ini is not called at all. ...



    此时您的评论是正确的:a custom.ini文件根本不使用。 /etc/grafana/grafana.ini文件是您平台的自定义配置文件(Yum repo = rpm 包)。

    this comment Grafana 联合创始人和 this docs section 中的说明.

    关于customization - 将 custom.ini 与 Grafana 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50925016/

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