Class OpenStackSDConfig

    • Method Detail

      • getAllTenants

        public Boolean getAllTenants()
        allTenants defines 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)
        allTenants defines 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 defines the OpenStack applicationCredentialId.
      • setApplicationCredentialId

        public void setApplicationCredentialId​(String applicationCredentialId)
        applicationCredentialId defines the OpenStack applicationCredentialId.
      • getApplicationCredentialName

        public String getApplicationCredentialName()
        applicationCredentialName defines 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)
        applicationCredentialName defines 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 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​(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 defines the availability of the endpoint to connect to.
      • setAvailability

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

        public String getDomainID()
        domainID defines The OpenStack domainID.
      • setDomainID

        public void setDomainID​(String domainID)
        domainID defines The OpenStack domainID.
      • getDomainName

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

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

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

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

        public 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​(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()
        port defines 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)
        port defines 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 defines the OpenStack projectID.
      • setProjectID

        public void setProjectID​(String projectID)
        projectID defines the OpenStack projectID.
      • getProjectName

        public String getProjectName()
        projectName defines an optional field 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)
        projectName defines an optional field 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()
        refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
      • setRefreshInterval

        public void setRefreshInterval​(String refreshInterval)
        refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
      • getRegion

        public String getRegion()
        region defines the OpenStack Region.
      • setRegion

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

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


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

      • setRole

        public void setRole​(String role)
        role defines 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 defines the OpenStack userid.
      • setUserid

        public void setUserid​(String userid)
        userid defines the OpenStack userid.
      • getUsername

        public String getUsername()
        username defines the username 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 defines the username 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)