@cryptotaxi247 / infra-1 / commits / 7f8d556f

Checkpoint

Eelco Dolstra committed Nov 8, 2019 at 16:07 UTC 7f8d556f04e79f5cbd27f9cbbbe939434ff5e63d
2 files changed +11 -3
delft/eris.nix
+10 -2
@@ -52,7 +52,7 @@ in {
52 services.prometheus = {
53 enable = true;
54 extraFlags = [
55 - "-storage.local.retention=${toString (120 * 24)}h"
55 + "--storage.tsdb.retention=${toString (120 * 24)}h"
56 "--web.external-url=https://status.nixos.org/prometheus/"
57 ];
58
@@ -122,6 +122,14 @@ in {
122 source_labels = [ "__meta_packet_facility" ];
123 target_label = "facility";
124 }
125 + {
126 + source_labels = [ "__meta_packet_plan" ];
127 + target_label = "plan";
128 + }
129 + {
130 + source_labels = [ "__meta_packet_state" ];
131 + target_label = "state";
132 + }
133 {
134 source_labels = [ "__meta_packet_short_id" ];
135 target_label = "instance";
@@ -192,7 +200,7 @@ in {
200 };
201
202 deployment.keys."packet-sd-env" = {
195 - keyFile = ../prometheus-packet-service-discovery;
203 + keyFile = /home/deploy/src/nixos-org-configurations/prometheus-packet-service-discovery;
204 user = "packet-sd";
205 };
206
delft/prometheus/packet-sd.nix
+1 -1
@@ -10,7 +10,7 @@ buildGoModule rec {
10 sha256 = "01464m88pcv0zfd6hm4m02phf5b9gj2k04qdd71iir4zvvjgyd6g";
11 };
12
13 - modSha256 = "1km8hl7lh71bvkz3w4bdi2zpwar1fdvxpaa7nkjq8fvlyki16f33";
13 + modSha256 = "sha256-vP1O2YFMCu2P7YnV67yrMSyvWxLwun4cm/Hm5y6W1FY=";
14
15 subPackages = [ "." ];
16