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