Compare commits
2 commits
a7ead3d5e0
...
fa9a46ca36
Author | SHA1 | Date | |
---|---|---|---|
fa9a46ca36 | |||
6cb00992e9 |
4 changed files with 0 additions and 94 deletions
|
@ -48,9 +48,6 @@ in
|
||||||
searxng = pkgs.callPackage ./searxng.nix {
|
searxng = pkgs.callPackage ./searxng.nix {
|
||||||
inherit (self'.packages) searxng;
|
inherit (self'.packages) searxng;
|
||||||
};
|
};
|
||||||
tempo = pkgs.callPackage ./tempo.nix {
|
|
||||||
inherit (self'.packages) tempo;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,71 +0,0 @@
|
||||||
{ nixosTest, tempo, writeText }:
|
|
||||||
|
|
||||||
nixosTest {
|
|
||||||
name = "tempo";
|
|
||||||
nodes.machine = let
|
|
||||||
dataDir = "/var/lib/tempo";
|
|
||||||
tempoConfig = {
|
|
||||||
server = {
|
|
||||||
http_listen_address = "127.0.0.1";
|
|
||||||
http_listen_port = 8888;
|
|
||||||
};
|
|
||||||
ingester = {
|
|
||||||
trace_idle_period = "30s";
|
|
||||||
max_block_bytes = 1000000;
|
|
||||||
max_block_duration = "5m";
|
|
||||||
};
|
|
||||||
compactor = {
|
|
||||||
compaction = {
|
|
||||||
compaction_window = "1h";
|
|
||||||
max_block_bytes = 100000000;
|
|
||||||
compacted_block_retention = "10m";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
storage.trace = {
|
|
||||||
backend = "local";
|
|
||||||
block.bloom_filter_false_positive = 0.05;
|
|
||||||
wal.path = "${dataDir}/wal";
|
|
||||||
local.path = "${dataDir}/blocks";
|
|
||||||
pool = {
|
|
||||||
max_workers = 16;
|
|
||||||
queue_depth = 1000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
metrics_generator = {
|
|
||||||
registry.external_labels = {
|
|
||||||
source = "tempo";
|
|
||||||
};
|
|
||||||
storage = {
|
|
||||||
path = "${dataDir}/generator/wal";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
overrides.metrics_generator_processors = [
|
|
||||||
"service-graphs"
|
|
||||||
"span-metrics"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
users.users.tempo = {
|
|
||||||
isSystemUser = true;
|
|
||||||
group = "tempo";
|
|
||||||
home = dataDir;
|
|
||||||
createHome = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups.tempo = {};
|
|
||||||
systemd.services.tempo = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
User = "tempo";
|
|
||||||
Group = "tempo";
|
|
||||||
ExecStart = "${tempo}/bin/tempo -config.file=${writeText "tempo.yaml" (builtins.toJSON tempoConfig)}";
|
|
||||||
PrivateTmp = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
testScript = ''
|
|
||||||
machine.wait_for_unit("tempo.service")
|
|
||||||
machine.wait_for_open_port(8888)
|
|
||||||
machine.succeed("curl -s --fail http://127.0.0.1:8888/status/version")
|
|
||||||
'';
|
|
||||||
}
|
|
|
@ -52,10 +52,4 @@ super: rec {
|
||||||
super.python3Packages.systemd
|
super.python3Packages.systemd
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
tempo = (super.tempo.override { buildGoModule = super.buildGo121Module; }).overrideAttrs (_: {
|
|
||||||
version = builtins.substring 1 (-1) pins.tempo.version;
|
|
||||||
src = super.npins.mkSource pins.tempo;
|
|
||||||
subPackages = [ "cmd/tempo" ];
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,20 +51,6 @@
|
||||||
"revision": "73ef1823bb9b76d6cbde5d349e82eed0d5dcb4cb",
|
"revision": "73ef1823bb9b76d6cbde5d349e82eed0d5dcb4cb",
|
||||||
"url": "https://api.github.com/repos/StevenBlack/hosts/tarball/3.14.82",
|
"url": "https://api.github.com/repos/StevenBlack/hosts/tarball/3.14.82",
|
||||||
"hash": "1f3d1m27xph8canm7ll0c2fbh6gzf4pfqmrbhix1fg2hxz1pwbqm"
|
"hash": "1f3d1m27xph8canm7ll0c2fbh6gzf4pfqmrbhix1fg2hxz1pwbqm"
|
||||||
},
|
|
||||||
"tempo": {
|
|
||||||
"type": "GitRelease",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "grafana",
|
|
||||||
"repo": "tempo"
|
|
||||||
},
|
|
||||||
"pre_releases": false,
|
|
||||||
"version_upper_bound": null,
|
|
||||||
"version": "v2.3.0",
|
|
||||||
"revision": "0b0f48ea2dea728b06ba93bb505fb96b4224fcae",
|
|
||||||
"url": "https://api.github.com/repos/grafana/tempo/tarball/v2.3.0",
|
|
||||||
"hash": "08rh22zmx7j5gxsqn4cjr1lg5frmq0bgq8iyvdlgmml5xdbkqj90"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 2
|
"version": 2
|
||||||
|
|
Loading…
Add table
Reference in a new issue