blob: 2ab62766ab5d555eb91051b350a43addfee9dc3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ pkgs, ...}:
let
pkg = with pkgs.python3Packages;buildPythonPackage rec {
rev = "be31da7";
name = "europastats-${rev}";
propagatedBuildInputs = [
requests
docopt
];
src = pkgs.fetchgit {
url = "http://cgit.euer.krebsco.de/europastats";
inherit rev;
sha256 = "0qj18vgj9nm6aisyqhk3iz3rf8xp7mn5jc6sfylcaw588a9sjfvc";
};
};
in {
services.telegraf.extraConfig.inputs.exec = [
{
commands = [ "${pkg}/bin/europa-attractions"];
timeout = "1m";
data_format = "json";
name_override = "europawaiting";
interval = "1m";
tag_keys = [
"status"
"type"
"name"
];
}
{
commands = [ "${pkg}/bin/europa-weather"];
timeout = "20s";
data_format = "json";
name_override = "europaweather";
interval = "10m";
tag_keys = [
"type"
"name"
"offset"
];
}
];
}
|