Skip to content

Commit

Permalink
Add metrics endpoint and scrape config
Browse files Browse the repository at this point in the history
  • Loading branch information
Albin Vass committed Apr 27, 2024
1 parent f6ed683 commit cc31b57
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions nixos/hosts/devbox/matrix-synapse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
compress = true;
}];
}
{
port = 9002;
type = "metrics";
bind_addresses = ["127.0.0.1"];
}
];
database.name = "sqlite3";

Expand Down
20 changes: 14 additions & 6 deletions nixos/hosts/devbox/monitoring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@
prometheus = {
enable = true;
stateDir = "prometheus";
scrapeConfigs =[{
job_name = "steam-servers";
static_configs = [{
targets = [ "steam-servers.dev.albinvass.se:9002" ];
}];
}];
scrapeConfigs =[
{
job_name = "steam-servers";
static_configs = [{
targets = [ "steam-servers.dev.albinvass.se:9002" ];
}];
}
{
job_name = "matrix-synapse";
static_configs = [{
targets = [ "localhost:9002" ];
}];
}
];
};
grafana = {
enable = true;
Expand Down

0 comments on commit cc31b57

Please sign in to comment.