wolf.r: graphite.shack redirect to graphite:8080
This commit is contained in:
parent
124b1d7639
commit
1eeccb54a2
|
@ -42,19 +42,19 @@ in
|
||||||
# connect to git.shackspace.de as group runner for rz
|
# connect to git.shackspace.de as group runner for rz
|
||||||
<stockholm/krebs/2configs/shack/gitlab-runner.nix>
|
<stockholm/krebs/2configs/shack/gitlab-runner.nix>
|
||||||
|
|
||||||
# Statistics collection and visualization
|
# Statistics collection and visualization
|
||||||
<stockholm/krebs/2configs/graphite.nix>
|
<stockholm/krebs/2configs/shack/graphite.nix>
|
||||||
## Collect data from mqtt.shack and store in graphite database
|
## Collect data from mqtt.shack and store in graphite database
|
||||||
<stockholm/krebs/2configs/shack/mqtt_sub.nix>
|
<stockholm/krebs/2configs/shack/mqtt_sub.nix>
|
||||||
## Collect radioactive data and put into graphite
|
## Collect radioactive data and put into graphite
|
||||||
<stockholm/krebs/2configs/shack/radioactive.nix>
|
<stockholm/krebs/2configs/shack/radioactive.nix>
|
||||||
## mqtt.shack
|
## mqtt.shack
|
||||||
<stockholm/krebs/2configs/shack/mqtt.nix>
|
<stockholm/krebs/2configs/shack/mqtt.nix>
|
||||||
|
## influx.shack
|
||||||
|
<stockholm/krebs/2configs/shack/influx.nix>
|
||||||
## Collect local statistics via collectd and send to collectd
|
## Collect local statistics via collectd and send to collectd
|
||||||
<stockholm/krebs/2configs/stats/wolf-client.nix>
|
<stockholm/krebs/2configs/stats/wolf-client.nix>
|
||||||
|
|
||||||
{ services.influxdb.enable = true; }
|
|
||||||
|
|
||||||
<stockholm/krebs/2configs/shack/netbox.nix>
|
<stockholm/krebs/2configs/shack/netbox.nix>
|
||||||
<stockholm/krebs/2configs/shack/prometheus/server.nix>
|
<stockholm/krebs/2configs/shack/prometheus/server.nix>
|
||||||
<stockholm/krebs/2configs/shack/prometheus/node.nix>
|
<stockholm/krebs/2configs/shack/prometheus/node.nix>
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
# hostname: graphite.shack
|
||||||
|
|
||||||
|
|
||||||
# graphite-web on port 8080
|
# graphite-web on port 8080
|
||||||
# carbon cache on port 2003 (tcp/udp)
|
# carbon cache on port 2003 (tcp/udp)
|
||||||
|
let
|
||||||
# TODO: krebs.graphite.minimal.enable
|
port = 8080;
|
||||||
# TODO: configure firewall
|
in {
|
||||||
with import <stockholm/lib>;
|
networking.firewall.allowedTCPPorts = [ 2003 port ];
|
||||||
{
|
networking.firewall.allowedUDPPorts = [ 2003 ];
|
||||||
imports = [ ];
|
services.nginx.virtualHosts."graphite.shack" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString port}/";
|
||||||
|
};
|
||||||
|
};
|
||||||
services.graphite = {
|
services.graphite = {
|
||||||
api = {
|
api = {
|
||||||
|
inherit port;
|
||||||
enable = true;
|
enable = true;
|
||||||
listenAddress = "0.0.0.0";
|
listenAddress = "0.0.0.0";
|
||||||
};
|
};
|
18
krebs/2configs/shack/influx.nix
Normal file
18
krebs/2configs/shack/influx.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
let
|
||||||
|
port = 8086;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [ port ]; # for legacy applications
|
||||||
|
services.nginx.virtualHosts."influx.shack" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString port}/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.influxdb = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = {
|
||||||
|
bind-address = ":${toString port}";
|
||||||
|
http.log-enabled = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user