【问题标题】:How to install basic auth on graphite and grafana如何在石墨和 grafana 上安装基本身份验证
【发布时间】:2015-04-13 09:19:16
【问题描述】:

我已经安装了 Graphite 和 grafana,一切正常。

我需要为石墨和 grafana 添加基本身份验证。

我该怎么做?

石墨配置文件: /etc/apache2/sites-enabled/graphite.conf

<VirtualHost *:80>
    WSGIDaemonProcess _graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120 user=_graphite group=_graphite
    WSGIProcessGroup _graphite
    WSGIImportScript /usr/share/graphite-web/graphite.wsgi process-group=_graphite application-group=%{GLOBAL}
    WSGIScriptAlias / /usr/share/graphite-web/graphite.wsgi

    Alias /content/ /usr/share/graphite-web/static/
    <Location "/content/">
            SetHandler None
    </Location>

    ErrorLog ${APACHE_LOG_DIR}/graphite-web_error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/graphite-web_access.log combined

</VirtualHost>

【问题讨论】:

    标签: graphite basic-authentication grafana


    【解决方案1】:

    尝试在 python 包中访问您的石墨分布:

    例如

    cd /usr/lib/python2.7/dist-packages/graphite
    

    你应该有一个文件manage.py

    运行:

    python manage.py migrate auth
    

    您可能还需要运行:

    graphite-manage syncdb
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-28
      • 1970-01-01
      • 1970-01-01
      • 2021-03-05
      • 2015-08-08
      • 1970-01-01
      • 1970-01-01
      • 2021-07-29
      相关资源
      最近更新 更多