push
This commit is contained in:
@@ -104,7 +104,6 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
scrape_configs = [
|
scrape_configs = [
|
||||||
# For systemd logs
|
|
||||||
{
|
{
|
||||||
job_name = "journal";
|
job_name = "journal";
|
||||||
journal = {
|
journal = {
|
||||||
@@ -122,7 +121,7 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
# For nginx logs
|
|
||||||
{
|
{
|
||||||
job_name = "nginx";
|
job_name = "nginx";
|
||||||
static_configs = [
|
static_configs = [
|
||||||
@@ -141,7 +140,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# this puts the folder dashboards on the host system at /etc/grafana/dashboards
|
|
||||||
environment.etc."grafana/dashboards" = {
|
environment.etc."grafana/dashboards" = {
|
||||||
source = ./dashboards;
|
source = ./dashboards;
|
||||||
user = "grafana";
|
user = "grafana";
|
||||||
@@ -168,7 +166,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
dashboards.settings.providers = [
|
dashboards.settings.providers = [
|
||||||
{
|
{
|
||||||
# this tells grafana to look at the path for dashboards
|
|
||||||
options.path = "/etc/grafana/dashboards";
|
options.path = "/etc/grafana/dashboards";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user