anchor.diff:        };
   
         opentsdbHost = mkOption {
  -        type = types.string;
  +        type = types.nullOr types.string;
           default = "localhost:4242";
           description = ''
             Host and port of the OpenTSDB database that stores bosun data.
  +          To disable opentsdb you can pass null as parameter.
  +        '';
  +      };
  +
  +      influxHost = mkOption {
  +        type = types.nullOr types.string;
  +        default = null;
  +        example = "localhost:8086";
  +        description = ''
  +           Host and port of the influxdb database.
           '';
         };
   
  
positive.code:   cfg = config.services.bosun;
  
    configFile = pkgs.writeText "bosun.conf" ''
      tsdbHost = ${cfg.opentsdbHost}
      httpListen = ${cfg.listenAddress}
      stateFile = ${cfg.stateFile}
      checkFrequency = ${cfg.checkFrequency}
  
      ${cfg.extraConfig}
  
negative.code:       };
  
        stateFile = mkOption {
          type = types.path;
          default = "/var/lib/bosun/bosun.state";
          description = ''
            Path to bosun's state file.
          '';
        };
  
        ledisDir = mkOption {
          type = types.path;
          default = "/var/lib/bosun/ledis_data";
          description = ''
            Path to bosun's ledis data dir
          '';
        };
  
  