0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

grafana dashboard で環境差分を扱う Tips

Posted at

サマリ

grafana dashboard での環境差分は metrics を使って実現する

grafana における環境差分管理

provisioning でしか環境変数は設定できず、dashboard では扱えない。

そのため、 provisioning 時に設定できる grafana 環境情報を出力するメトリクスの項目を使って dashboard に環境変数を引き渡す

これにより、 grafana が grafana_environment_info metrics を出力するようになる

具体例(datasource: prometheus の場合)

  • provisioning file(default.ini 等) に下記記述を追加
[metrics.environment_info]
#exampleLabel1 = exampleValue1
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?