mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Configure data sources in grafana
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
services.mimir = {
|
services.mimir = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
|
multitenancy_enabled = false;
|
||||||
server = {
|
server = {
|
||||||
http_listen_port = 1880;
|
http_listen_port = 1880;
|
||||||
grpc_listen_port = 9095;
|
grpc_listen_port = 9095;
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
services.loki = {
|
services.loki = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
|
auth_enabled = false;
|
||||||
server = {
|
server = {
|
||||||
http_listen_port = 1881;
|
http_listen_port = 1881;
|
||||||
grpc_listen_port = 9096;
|
grpc_listen_port = 9096;
|
||||||
@@ -82,5 +84,31 @@
|
|||||||
domain = "grafana.sdg.moe";
|
domain = "grafana.sdg.moe";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
provision = {
|
||||||
|
enable = true;
|
||||||
|
datasources.settings.datasources = [
|
||||||
|
{
|
||||||
|
name = "mimir";
|
||||||
|
type = "prometheus";
|
||||||
|
url = "http://localhost:1880/prometheus";
|
||||||
|
isDefault = false;
|
||||||
|
jsonData = {
|
||||||
|
prometheusType = "Mimir";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "loki";
|
||||||
|
type = "loki";
|
||||||
|
url = "http://localhost:1881";
|
||||||
|
isDefault = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "tempo";
|
||||||
|
type = "tempo";
|
||||||
|
url = "localhost:1882";
|
||||||
|
isDefault = false;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user