unable to configure grafana with graphite

后端 未结 7 854
孤独总比滥情好
孤独总比滥情好 2021-02-10 11:44

I am using Nginx to serve both graphite and grafana (they are all running on the same server - not my desktop). I am able to access graphite via Nginx. However, grafana cannot

7条回答
  •  清酒与你
    2021-02-10 12:00

    I was able to solve this problem by changing the requests to GET instead of POST. See this issue for more information. https://github.com/grafana/grafana/issues/345

    My data sources ended up looking like

    datasources: {
      graphite: {
        type: 'graphite',
        url: window.location.protocol+"//"+window.location.hostname+":"+window.location.port+"/_graphite",
        default: true,
        render_method: 'GET'  
      },
    },
    

    I still haven't figured out how to get my graphite install to accept POST requests. Even when querying directly so I can be sure CORS isn't an issue.

提交回复
热议问题