ユーザ用ツール

サイト用ツール


サイドバー

Index

はじめてのおつかい






DokuWiki整形記法


PlayGround



serverapps:monitor:grafana

文書の過去の版を表示しています。


Grafana

Install

sudo pkg install grafana8

設定

/usr/local/etc/grafana/grafana.ini

# Log web requests
;router_logging = false
router_logging = true

................

[users]
# disable user signup / registration
;allow_sign_up = true
allow_sign_up = false

# Allow non admin users to create organizations
;allow_org_create = true
allow_org_create = false

メモ

- Invoking python script from dashboard

If you’re talking about running Python in the user’s browser, that’s not possible AFAIK.

If you want to run a Python script on the server, you’ll want to set up and expose an HTTP API endpoint that triggers it, which you then call from the Grafana front-end (e.g. via Ajax). For that you might want to use some combination of Flask/uWSGI/Nginx (see e.g. Creating an API to execute a python script - Stack Overflow 195).
serverapps/monitor/grafana.1652692935.txt.gz · 最終更新: 2022/05/16 18:22 by hayashi