Git Product home page Git Product logo

grafana-authproxy-reverseproxy's Introduction

介紹

透過Reverse Proxy以及URL中的Query內容,來實現快速登入Grafana的功能

http://localhost:8080/dashboards?user=使用者名稱

執行

這邊是透過docker來執行的,在docker-compose.yml裡面有環境變數需要設定

environment:
  - ADMIN_PASSWORD=admin
  - GRAFANA_URL=http://grafana:3000/

在新增User之前

需要在AWS帳戶新增一個只有AWS CloudWatch讀取權限的使用者

新增User

提供了API接口,只需要將下方的資料結構POST到create這個API即可
ex:

http://localhost:8080/create/
{
	"userName": "",
	"email": "",
	"accessKey": "",
	"secretKey": ""
}

目前會預設建置EC2的dashboard

新增dashboard

提供了API接口,只需要將下方的資料結構POST到add這個API即可
ex:

http://localhost:8080/add/
{
	"userName": "",
	"dashboard": [""]
}

dashboard請填入dashboard目錄下的json檔案名稱,如果填入all則會全部都建置。

Grafana admin登入

反向代理伺服器有擋Admin的登入,以防被他人登入後串改
Admin可以透過Grafana的URL來登入並管理內容

grafana-authproxy-reverseproxy's People

Contributors

circleyu avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.