Class OpenStackSDConfig

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class OpenStackSDConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<OpenStackSDConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
    See Also:
    Serialized Form
    • Constructor Detail

      • OpenStackSDConfig

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

        public OpenStackSDConfig​(Boolean allTenants,
                                 String applicationCredentialId,
                                 String applicationCredentialName,
                                 io.fabric8.kubernetes.api.model.SecretKeySelector applicationCredentialSecret,
                                 String availability,
                                 String domainID,
                                 String domainName,
                                 String identityEndpoint,
                                 io.fabric8.kubernetes.api.model.SecretKeySelector password,
                                 Integer port,
                                 String projectID,
                                 String projectName,
                                 String refreshInterval,
                                 String region,
                                 String role,
                                 SafeTLSConfig tlsConfig,
                                 String userid,
                                 String username)
    • Method Detail

      • getAllTenants

        public Boolean getAllTenants()
        Whether the service discovery should list all instances for all projects. It is only relevant for the 'instance' role and usually requires admin permissions.
      • setAllTenants

        public void setAllTenants​(Boolean allTenants)
        Whether the service discovery should list all instances for all projects. It is only relevant for the 'instance' role and usually requires admin permissions.
      • getApplicationCredentialId

        public String getApplicationCredentialId()
        ApplicationCredentialID
      • setApplicationCredentialId

        public void setApplicationCredentialId​(String applicationCredentialId)
        ApplicationCredentialID
      • getApplicationCredentialName

        public String getApplicationCredentialName()
        The ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate. Some providers allow you to create an application credential to authenticate rather than a password.
      • setApplicationCredentialName

        public void setApplicationCredentialName​(String applicationCredentialName)
        The ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate. Some providers allow you to create an application credential to authenticate rather than a password.
      • getApplicationCredentialSecret

        public io.fabric8.kubernetes.api.model.SecretKeySelector getApplicationCredentialSecret()
        OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
      • setApplicationCredentialSecret

        public void setApplicationCredentialSecret​(io.fabric8.kubernetes.api.model.SecretKeySelector applicationCredentialSecret)
        OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
      • getAvailability

        public String getAvailability()
        Availability of the endpoint to connect to.
      • setAvailability

        public void setAvailability​(String availability)
        Availability of the endpoint to connect to.
      • getDomainID

        public String getDomainID()
        DomainID
      • setDomainID

        public void setDomainID​(String domainID)
        DomainID
      • getDomainName

        public String getDomainName()
        At most one of domainId and domainName must be provided if using username with Identity V3. Otherwise, either are optional.
      • setDomainName

        public void setDomainName​(String domainName)
        At most one of domainId and domainName must be provided if using username with Identity V3. Otherwise, either are optional.
      • getIdentityEndpoint

        public String getIdentityEndpoint()
        IdentityEndpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version.
      • setIdentityEndpoint

        public void setIdentityEndpoint​(String identityEndpoint)
        IdentityEndpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version.
      • getPassword

        public io.fabric8.kubernetes.api.model.SecretKeySelector getPassword()
        OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
      • setPassword

        public void setPassword​(io.fabric8.kubernetes.api.model.SecretKeySelector password)
        OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
      • getPort

        public Integer getPort()
        The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
      • setPort

        public void setPort​(Integer port)
        The port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
      • getProjectID

        public String getProjectID()
        ProjectID
      • setProjectID

        public void setProjectID​(String projectID)
        ProjectID
      • getProjectName

        public String getProjectName()
        The ProjectId and ProjectName fields are optional for the Identity V2 API. Some providers allow you to specify a ProjectName instead of the ProjectId. Some require both. Your provider's authentication policies will determine how these fields influence authentication.
      • setProjectName

        public void setProjectName​(String projectName)
        The ProjectId and ProjectName fields are optional for the Identity V2 API. Some providers allow you to specify a ProjectName instead of the ProjectId. Some require both. Your provider's authentication policies will determine how these fields influence authentication.
      • getRefreshInterval

        public String getRefreshInterval()
        Refresh interval to re-read the instance list.
      • setRefreshInterval

        public void setRefreshInterval​(String refreshInterval)
        Refresh interval to re-read the instance list.
      • getRegion

        public String getRegion()
        The OpenStack Region.
      • setRegion

        public void setRegion​(String region)
        The OpenStack Region.
      • getRole

        public String getRole()
        The OpenStack role of entities that should be discovered.


        Note: The `LoadBalancer` role requires Prometheus >= v3.2.0.

      • setRole

        public void setRole​(String role)
        The OpenStack role of entities that should be discovered.


        Note: The `LoadBalancer` role requires Prometheus >= v3.2.0.

      • getTlsConfig

        public SafeTLSConfig getTlsConfig()
        OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
      • setTlsConfig

        public void setTlsConfig​(SafeTLSConfig tlsConfig)
        OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
      • getUserid

        public String getUserid()
        UserID
      • setUserid

        public void setUserid​(String userid)
        UserID
      • getUsername

        public String getUsername()
        Username is required if using Identity V2 API. Consult with your provider's control panel to discover your account's username. In Identity V3, either userid or a combination of username and domainId or domainName are needed
      • setUsername

        public void setUsername​(String username)
        Username is required if using Identity V2 API. Consult with your provider's control panel to discover your account's username. In Identity V3, either userid or a combination of username and domainId or domainName are needed
      • getAdditionalProperties

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

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

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