mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 23:44:16 +01:00
feat: grafana - add more plugins
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
myvars,
|
||||
...
|
||||
@@ -44,9 +45,35 @@
|
||||
# Grafana's alerting rules is not recommended to use, we use Prometheus alertmanager instead.
|
||||
# https://grafana.com/docs/grafana/latest/administration/provisioning/#data-sources
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.path = ./datasources.yml;
|
||||
dashboards.path = ./dashboards.yml;
|
||||
};
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/tree/master/pkgs/servers/monitoring/grafana/plugins
|
||||
declarativePlugins = with pkgs.grafanaPlugins; [
|
||||
# https://github.com/VictoriaMetrics/victoriametrics-datasource
|
||||
# supports victoria-metrics's MetricsQL, template, tracing, prettify, etc.
|
||||
victoriametrics-metrics-datasource
|
||||
# https://github.com/VictoriaMetrics/victorialogs-datasource
|
||||
victoriametrics-logs-datasource
|
||||
|
||||
redis-app
|
||||
redis-datasource
|
||||
redis-explorer-app
|
||||
|
||||
grafana-googlesheets-datasource
|
||||
grafana-github-datasource
|
||||
grafana-clickhouse-datasource
|
||||
grafana-mqtt-datasource
|
||||
frser-sqlite-datasource
|
||||
|
||||
# https://github.com/grafana/grafana-infinity-datasource
|
||||
# Visualize data from JSON, CSV, XML, GraphQL and HTML endpoints in Grafana
|
||||
yesoreyeram-infinity-datasource
|
||||
|
||||
# plugins not included in nixpkgs: trino, grafana advisor, llm, kafka
|
||||
];
|
||||
};
|
||||
|
||||
environment.etc."grafana/dashboards".source = ./dashboards;
|
||||
|
||||
Reference in New Issue
Block a user