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