This commit is contained in:
parent
5086aba848
commit
e183e8310c
2 changed files with 44 additions and 38 deletions
|
|
@ -104,12 +104,16 @@
|
|||
|
||||
prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [{
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "ratchat-server";
|
||||
static_configs = [{
|
||||
static_configs = [
|
||||
{
|
||||
targets = ["127.0.0.1:9011"];
|
||||
}];
|
||||
}];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
grafana = {
|
||||
|
|
@ -123,11 +127,13 @@ grafana = {
|
|||
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings.datasources = [{
|
||||
datasources.settings.datasources = [
|
||||
{
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
url = "http://localhost:9090";
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue