anchor.diff:      fetch_timeout = mkDefOpt types.str "2m" ''
         The time after which the monitoring assignments are refreshed.
       '';
  +  };
  +
  +  promTypes.lightsail_sd_config = types.submodule {
  +    options = {
  +      region = mkOpt types.str ''
  +        The AWS region. If blank, the region from the instance metadata is used.
  +      '';
  +
  +      endpoint = mkOpt types.str ''
  +        Custom endpoint to be used.
  +      '';
  +
  +      access_key = mkOpt types.str ''
  +        The AWS API keys. If blank, the environment variable <literal>AWS_ACCESS_KEY_ID</literal> is used.
  +      '';
  +
  +      secret_key = mkOpt types.str ''
  +        The AWS API keys. If blank, the environment variable <literal>AWS_SECRET_ACCESS_KEY</literal> is used.
  +      '';
  +
  +      profile = mkOpt types.str ''
  +        Named AWS profile used to connect to the API.
  +      '';
  +
  +      role_arn = mkOpt types.str ''
  +        AWS Role ARN, an alternative to using AWS API keys.
  +      '';
  +
  +      refresh_interval = mkDefOpt types.str "60s" ''
  +        Refresh interval to re-read the instance list.
  +      '';
  +
  +      port = mkDefOpt types.int "80" ''
  +        The port to scrape metrics from. If using the public IP address, this must
  +        instead be specified in the relabeling rule.
  +      '';
  +    };
     };
   
     promTypes.linode_sd_config = mkSdConfigModule {
  
positive.code:     };
      systemd.services.prometheus = {
        wantedBy = [ "multi-user.target" ];
        after    = [ "network.target" ];
        preStart = mkIf (!cfg.enableReload) ''
          ${lib.getBin pkgs.envsubst}/bin/envsubst -o "/run/prometheus/prometheus-substituted.yaml" \
                                                   -i "${prometheusYml}"
  
negative.code:             concatStringsSep " \\\n  " cmdlineArgs);
          ExecReload = mkIf cfg.enableReload "+${reload}/bin/reload-prometheus";
          User = "prometheus";
          Restart = "always";
          EnvironmentFile = mkIf (cfg.environmentFile != null && !cfg.enableReload) [ cfg.environmentFile ];
          RuntimeDirectory = "prometheus";
          RuntimeDirectoryMode = "0700";
  