Class FileSDConfig

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<FileSDConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class FileSDConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<FileSDConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    FileSDConfig defines a Prometheus file service discovery configuration See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config
    See Also:
    Serialized Form
    • Constructor Detail

      • FileSDConfig

        public FileSDConfig()
        No args constructor for use in serialization
      • FileSDConfig

        public FileSDConfig​(List<String> files,
                            String refreshInterval)
    • Method Detail

      • getFiles

        public List<String> getFiles()
        List of files to be used for file discovery. Recommendation: use absolute paths. While relative paths work, the prometheus-operator project makes no guarantees about the working directory where the configuration file is stored. Files must be mounted using Prometheus.ConfigMaps or Prometheus.Secrets.
      • setFiles

        public void setFiles​(List<String> files)
        List of files to be used for file discovery. Recommendation: use absolute paths. While relative paths work, the prometheus-operator project makes no guarantees about the working directory where the configuration file is stored. Files must be mounted using Prometheus.ConfigMaps or Prometheus.Secrets.
      • getRefreshInterval

        public String getRefreshInterval()
        RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.
      • setRefreshInterval

        public void setRefreshInterval​(String refreshInterval)
        RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)