1 import ./make-test-python.nix ({ pkgs, ... } : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ offline ];
9 services.cadvisor.enable = true;
12 influxdb = { lib, ... }: with lib; {
13 services.cadvisor.enable = true;
14 services.cadvisor.storageDriver = "influxdb";
15 services.influxdb.enable = true;
21 machine.wait_for_unit("cadvisor.service")
22 machine.succeed("curl -f http://localhost:8080/containers/")
24 influxdb.wait_for_unit("influxdb.service")
26 # create influxdb database
28 'curl -f -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE root"'
31 influxdb.wait_for_unit("cadvisor.service")
32 influxdb.succeed("curl -f http://localhost:8080/containers/")