Skip to content

Commit

Permalink
Moving: Use hostnames instead of service names
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Apr 9, 2024
1 parent 89b9bb2 commit 152b32a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/consul/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
enable = true;

extraConfig = {
retry_join = [ "nuc.thewagner.home" ];
retry_join = [ "nuc" ];

client_addr = [ "0.0.0.0" ];

Expand Down
6 changes: 3 additions & 3 deletions modules/grafana/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
name = "Prometheus";
isDefault = true;
type = "prometheus";
url = "http://prometheus.thewagner.home";
url = "http://nuc:9090";
}
{
name = "Loki";
type = "loki";
url = "http://loki.thewagner.home";
url = "http://nuc:3100";
}
{
name = "Alertmanager";
type = "alertmanager";
url = "http://alertmanager.thewagner.home";
url = "http://nuc:9093";
jsonData.implementation = "prometheus";
jsonData.handleGrafanaManagedAlerts = true;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/loki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let
local.directory = "/tmp/rules";
};
rule_path = "/tmp/scratch";
alertmanager_url = "http://alertmanager.thewagner.home";
alertmanager_url = "http://nuc:9093";
ring.kvstore.store = "inmemory";
enable_api = true;
};
Expand Down
2 changes: 1 addition & 1 deletion modules/prometheus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ let
{
static_configs = [
{
targets = [ "alertmanager.thewagner.home" ];
targets = [ "nuc:9093" ];
}
];
}
Expand Down
2 changes: 1 addition & 1 deletion modules/promtail.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ in
server.grpc_listen_port = 0;
clients = [
{
url = "http://loki.thewagner.home/loki/api/v1/push";
url = "http://nuc:3100/loki/api/v1/push";
}
];

Expand Down

0 comments on commit 152b32a

Please sign in to comment.