operator.v1beta1.vmScrapeConfig
"VMScrapeConfig specifies a set of targets and parameters describing how to scrape them."
Index
fn new(name)
obj metadata
fn withAnnotations(annotations)
fn withAnnotationsMixin(annotations)
fn withClusterName(clusterName)
fn withCreationTimestamp(creationTimestamp)
fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
fn withDeletionTimestamp(deletionTimestamp)
fn withFinalizers(finalizers)
fn withFinalizersMixin(finalizers)
fn withGenerateName(generateName)
fn withGeneration(generation)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withName(name)
fn withNamespace(namespace)
fn withOwnerReferences(ownerReferences)
fn withOwnerReferencesMixin(ownerReferences)
fn withResourceVersion(resourceVersion)
fn withSelfLink(selfLink)
fn withUid(uid)
obj spec
fn withAzureSDConfigs(azureSDConfigs)
fn withAzureSDConfigsMixin(azureSDConfigs)
fn withBearerTokenFile(bearerTokenFile)
fn withConsulSDConfigs(consulSDConfigs)
fn withConsulSDConfigsMixin(consulSDConfigs)
fn withDigitalOceanSDConfigs(digitalOceanSDConfigs)
fn withDigitalOceanSDConfigsMixin(digitalOceanSDConfigs)
fn withDnsSDConfigs(dnsSDConfigs)
fn withDnsSDConfigsMixin(dnsSDConfigs)
fn withEc2SDConfigs(ec2SDConfigs)
fn withEc2SDConfigsMixin(ec2SDConfigs)
fn withFileSDConfigs(fileSDConfigs)
fn withFileSDConfigsMixin(fileSDConfigs)
fn withFollow_redirects(follow_redirects)
fn withGceSDConfigs(gceSDConfigs)
fn withGceSDConfigsMixin(gceSDConfigs)
fn withHonorLabels(honorLabels)
fn withHonorTimestamps(honorTimestamps)
fn withHttpSDConfigs(httpSDConfigs)
fn withHttpSDConfigsMixin(httpSDConfigs)
fn withInterval(interval)
fn withKubernetesSDConfigs(kubernetesSDConfigs)
fn withKubernetesSDConfigsMixin(kubernetesSDConfigs)
fn withMax_scrape_size(max_scrape_size)
fn withMetricRelabelConfigs(metricRelabelConfigs)
fn withMetricRelabelConfigsMixin(metricRelabelConfigs)
fn withOpenstackSDConfigs(openstackSDConfigs)
fn withOpenstackSDConfigsMixin(openstackSDConfigs)
fn withParams(params)
fn withParamsMixin(params)
fn withPath(path)
fn withProxyURL(proxyURL)
fn withRelabelConfigs(relabelConfigs)
fn withRelabelConfigsMixin(relabelConfigs)
fn withSampleLimit(sampleLimit)
fn withScheme(scheme)
fn withScrapeTimeout(scrapeTimeout)
fn withScrape_interval(scrape_interval)
fn withSeriesLimit(seriesLimit)
fn withStaticConfigs(staticConfigs)
fn withStaticConfigsMixin(staticConfigs)
obj spec.authorization
obj spec.azureSDConfigs
obj spec.basicAuth
obj spec.bearerTokenSecret
obj spec.consulSDConfigs
fn withAllowStale(allowStale)
fn withDatacenter(datacenter)
fn withFollowRedirects(followRedirects)
fn withNamespace(namespace)
fn withNodeMeta(nodeMeta)
fn withNodeMetaMixin(nodeMeta)
fn withPartition(partition)
fn withProxyURL(proxyURL)
fn withScheme(scheme)
fn withServer(server)
fn withServices(services)
fn withServicesMixin(services)
fn withTagSeparator(tagSeparator)
fn withTags(tags)
fn withTagsMixin(tags)
obj spec.consulSDConfigs.authorization
obj spec.consulSDConfigs.basicAuth
obj spec.consulSDConfigs.oauth2
obj spec.consulSDConfigs.proxy_client_config
fn withBearer_token_file(bearer_token_file)
obj spec.consulSDConfigs.proxy_client_config.basic_auth
obj spec.consulSDConfigs.proxy_client_config.bearer_token
obj spec.consulSDConfigs.proxy_client_config.tls_config
fn withCaFile(caFile)
fn withCertFile(certFile)
fn withInsecureSkipVerify(insecureSkipVerify)
fn withKeyFile(keyFile)
fn withServerName(serverName)
obj spec.consulSDConfigs.proxy_client_config.tls_config.ca
obj spec.consulSDConfigs.proxy_client_config.tls_config.cert
obj spec.consulSDConfigs.proxy_client_config.tls_config.keySecret
obj spec.consulSDConfigs.tlsConfig
obj spec.consulSDConfigs.tokenRef
obj spec.digitalOceanSDConfigs
fn withFollowRedirects(followRedirects)
fn withPort(port)
fn withProxyURL(proxyURL)
obj spec.digitalOceanSDConfigs.authorization
obj spec.digitalOceanSDConfigs.oauth2
fn withClient_secret_file(client_secret_file)
fn withEndpoint_params(endpoint_params)
fn withEndpoint_paramsMixin(endpoint_params)
fn withScopes(scopes)
fn withScopesMixin(scopes)
fn withToken_url(token_url)
obj spec.digitalOceanSDConfigs.oauth2.client_id
obj spec.digitalOceanSDConfigs.oauth2.client_secret
obj spec.digitalOceanSDConfigs.proxy_client_config
fn withBearer_token_file(bearer_token_file)
obj spec.digitalOceanSDConfigs.proxy_client_config.basic_auth
obj spec.digitalOceanSDConfigs.proxy_client_config.bearer_token
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config
fn withCaFile(caFile)
fn withCertFile(certFile)
fn withInsecureSkipVerify(insecureSkipVerify)
fn withKeyFile(keyFile)
fn withServerName(serverName)
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.keySecret
obj spec.digitalOceanSDConfigs.tlsConfig
obj spec.dnsSDConfigs
obj spec.ec2SDConfigs
obj spec.fileSDConfigs
obj spec.gceSDConfigs
obj spec.httpSDConfigs
fn withProxyURL(proxyURL)
fn withUrl(url)
obj spec.httpSDConfigs.authorization
obj spec.httpSDConfigs.basicAuth
obj spec.httpSDConfigs.proxy_client_config
fn withBearer_token_file(bearer_token_file)
obj spec.httpSDConfigs.proxy_client_config.basic_auth
obj spec.httpSDConfigs.proxy_client_config.bearer_token
obj spec.httpSDConfigs.proxy_client_config.tls_config
fn withCaFile(caFile)
fn withCertFile(certFile)
fn withInsecureSkipVerify(insecureSkipVerify)
fn withKeyFile(keyFile)
fn withServerName(serverName)
obj spec.httpSDConfigs.proxy_client_config.tls_config.ca
obj spec.httpSDConfigs.proxy_client_config.tls_config.cert
obj spec.httpSDConfigs.proxy_client_config.tls_config.keySecret
obj spec.httpSDConfigs.tlsConfig
obj spec.kubernetesSDConfigs
fn withApiServer(apiServer)
fn withFollowRedirects(followRedirects)
fn withProxyURL(proxyURL)
fn withRole(role)
fn withSelectors(selectors)
fn withSelectorsMixin(selectors)
obj spec.kubernetesSDConfigs.attach_metadata
obj spec.kubernetesSDConfigs.authorization
obj spec.kubernetesSDConfigs.basicAuth
obj spec.kubernetesSDConfigs.namespaces
obj spec.kubernetesSDConfigs.oauth2
fn withClient_secret_file(client_secret_file)
fn withEndpoint_params(endpoint_params)
fn withEndpoint_paramsMixin(endpoint_params)
fn withScopes(scopes)
fn withScopesMixin(scopes)
fn withToken_url(token_url)
obj spec.kubernetesSDConfigs.oauth2.client_id
obj spec.kubernetesSDConfigs.oauth2.client_secret
obj spec.kubernetesSDConfigs.proxy_client_config
fn withBearer_token_file(bearer_token_file)
obj spec.kubernetesSDConfigs.proxy_client_config.basic_auth
obj spec.kubernetesSDConfigs.proxy_client_config.bearer_token
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config
fn withCaFile(caFile)
fn withCertFile(certFile)
fn withInsecureSkipVerify(insecureSkipVerify)
fn withKeyFile(keyFile)
fn withServerName(serverName)
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.keySecret
obj spec.kubernetesSDConfigs.selectors
obj spec.kubernetesSDConfigs.tlsConfig
obj spec.metricRelabelConfigs
fn withAction(action)
fn withIf(If)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withMatch(match)
fn withModulus(modulus)
fn withRegex(regex)
fn withReplacement(replacement)
fn withSeparator(separator)
fn withSourceLabels(sourceLabels)
fn withSourceLabelsMixin(sourceLabels)
fn withSource_labels(source_labels)
fn withSource_labelsMixin(source_labels)
fn withTargetLabel(targetLabel)
fn withTarget_label(target_label)
obj spec.oauth2
obj spec.openstackSDConfigs
fn withAllTenants(allTenants)
fn withApplicationCredentialId(applicationCredentialId)
fn withApplicationCredentialName(applicationCredentialName)
fn withAvailability(availability)
fn withDomainID(domainID)
fn withDomainName(domainName)
fn withIdentityEndpoint(identityEndpoint)
fn withPort(port)
fn withProjectID(projectID)
fn withProjectName(projectName)
fn withRegion(region)
fn withRole(role)
fn withUserid(userid)
fn withUsername(username)
obj spec.openstackSDConfigs.applicationCredentialSecret
obj spec.openstackSDConfigs.password
obj spec.openstackSDConfigs.tlsConfig
obj spec.relabelConfigs
fn withAction(action)
fn withIf(If)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withMatch(match)
fn withModulus(modulus)
fn withRegex(regex)
fn withReplacement(replacement)
fn withSeparator(separator)
fn withSourceLabels(sourceLabels)
fn withSourceLabelsMixin(sourceLabels)
fn withSource_labels(source_labels)
fn withSource_labelsMixin(source_labels)
fn withTargetLabel(targetLabel)
fn withTarget_label(target_label)
obj spec.staticConfigs
obj spec.tlsConfig
obj spec.vm_scrape_params
fn withDisable_compression(disable_compression)
fn withDisable_keep_alive(disable_keep_alive)
fn withHeaders(headers)
fn withHeadersMixin(headers)
fn withNo_stale_markers(no_stale_markers)
fn withScrape_align_interval(scrape_align_interval)
fn withScrape_offset(scrape_offset)
fn withStream_parse(stream_parse)
obj spec.vm_scrape_params.proxy_client_config
fn withBearer_token_file(bearer_token_file)
obj spec.vm_scrape_params.proxy_client_config.basic_auth
obj spec.vm_scrape_params.proxy_client_config.bearer_token
obj spec.vm_scrape_params.proxy_client_config.tls_config
fn withCaFile(caFile)
fn withCertFile(certFile)
fn withInsecureSkipVerify(insecureSkipVerify)
fn withKeyFile(keyFile)
fn withServerName(serverName)
obj spec.vm_scrape_params.proxy_client_config.tls_config.ca
obj spec.vm_scrape_params.proxy_client_config.tls_config.cert
obj spec.vm_scrape_params.proxy_client_config.tls_config.keySecret
Fields
fn new
new(name)
new returns an instance of VMScrapeConfig
obj metadata
"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."
fn metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
fn metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
Note: This function appends passed data to existing values
fn metadata.withClusterName
withClusterName(clusterName)
"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."
fn metadata.withCreationTimestamp
withCreationTimestamp(creationTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withDeletionGracePeriodSeconds
withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."
fn metadata.withDeletionTimestamp
withDeletionTimestamp(deletionTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withFinalizers
withFinalizers(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
fn metadata.withFinalizersMixin
withFinalizersMixin(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
Note: This function appends passed data to existing values
fn metadata.withGenerateName
withGenerateName(generateName)
"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"
fn metadata.withGeneration
withGeneration(generation)
"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."
fn metadata.withLabels
withLabels(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
fn metadata.withLabelsMixin
withLabelsMixin(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
Note: This function appends passed data to existing values
fn metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
fn metadata.withNamespace
withNamespace(namespace)
"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"
fn metadata.withOwnerReferences
withOwnerReferences(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
fn metadata.withOwnerReferencesMixin
withOwnerReferencesMixin(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
Note: This function appends passed data to existing values
fn metadata.withResourceVersion
withResourceVersion(resourceVersion)
"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn metadata.withSelfLink
withSelfLink(selfLink)
"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."
fn metadata.withUid
withUid(uid)
"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"
obj spec
"VMScrapeConfigSpec defines the desired state of VMScrapeConfig"
fn spec.withAzureSDConfigs
withAzureSDConfigs(azureSDConfigs)
"AzureSDConfigs defines a list of Azure service discovery configurations."
fn spec.withAzureSDConfigsMixin
withAzureSDConfigsMixin(azureSDConfigs)
"AzureSDConfigs defines a list of Azure service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withBearerTokenFile
withBearerTokenFile(bearerTokenFile)
"File to read bearer token for scraping targets."
fn spec.withConsulSDConfigs
withConsulSDConfigs(consulSDConfigs)
"ConsulSDConfigs defines a list of Consul service discovery configurations."
fn spec.withConsulSDConfigsMixin
withConsulSDConfigsMixin(consulSDConfigs)
"ConsulSDConfigs defines a list of Consul service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withDigitalOceanSDConfigs
withDigitalOceanSDConfigs(digitalOceanSDConfigs)
"DigitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations."
fn spec.withDigitalOceanSDConfigsMixin
withDigitalOceanSDConfigsMixin(digitalOceanSDConfigs)
"DigitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withDnsSDConfigs
withDnsSDConfigs(dnsSDConfigs)
"DNSSDConfigs defines a list of DNS service discovery configurations."
fn spec.withDnsSDConfigsMixin
withDnsSDConfigsMixin(dnsSDConfigs)
"DNSSDConfigs defines a list of DNS service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withEc2SDConfigs
withEc2SDConfigs(ec2SDConfigs)
"EC2SDConfigs defines a list of EC2 service discovery configurations."
fn spec.withEc2SDConfigsMixin
withEc2SDConfigsMixin(ec2SDConfigs)
"EC2SDConfigs defines a list of EC2 service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withFileSDConfigs
withFileSDConfigs(fileSDConfigs)
"FileSDConfigs defines a list of file service discovery configurations."
fn spec.withFileSDConfigsMixin
withFileSDConfigsMixin(fileSDConfigs)
"FileSDConfigs defines a list of file service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withFollow_redirects
withFollow_redirects(follow_redirects)
"FollowRedirects controls redirects for scraping."
fn spec.withGceSDConfigs
withGceSDConfigs(gceSDConfigs)
"GCESDConfigs defines a list of GCE service discovery configurations."
fn spec.withGceSDConfigsMixin
withGceSDConfigsMixin(gceSDConfigs)
"GCESDConfigs defines a list of GCE service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withHonorLabels
withHonorLabels(honorLabels)
"HonorLabels chooses the metric's labels on collisions with target labels."
fn spec.withHonorTimestamps
withHonorTimestamps(honorTimestamps)
"HonorTimestamps controls whether vmagent respects the timestamps present in scraped data."
fn spec.withHttpSDConfigs
withHttpSDConfigs(httpSDConfigs)
"HTTPSDConfigs defines a list of HTTP service discovery configurations."
fn spec.withHttpSDConfigsMixin
withHttpSDConfigsMixin(httpSDConfigs)
"HTTPSDConfigs defines a list of HTTP service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withInterval
withInterval(interval)
"Interval at which metrics should be scraped"
fn spec.withKubernetesSDConfigs
withKubernetesSDConfigs(kubernetesSDConfigs)
"KubernetesSDConfigs defines a list of Kubernetes service discovery configurations."
fn spec.withKubernetesSDConfigsMixin
withKubernetesSDConfigsMixin(kubernetesSDConfigs)
"KubernetesSDConfigs defines a list of Kubernetes service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withMax_scrape_size
withMax_scrape_size(max_scrape_size)
"MaxScrapeSize defines a maximum size of scraped data for a job"
fn spec.withMetricRelabelConfigs
withMetricRelabelConfigs(metricRelabelConfigs)
"MetricRelabelConfigs to apply to samples after scrapping."
fn spec.withMetricRelabelConfigsMixin
withMetricRelabelConfigsMixin(metricRelabelConfigs)
"MetricRelabelConfigs to apply to samples after scrapping."
Note: This function appends passed data to existing values
fn spec.withOpenstackSDConfigs
withOpenstackSDConfigs(openstackSDConfigs)
"OpenStackSDConfigs defines a list of OpenStack service discovery configurations."
fn spec.withOpenstackSDConfigsMixin
withOpenstackSDConfigsMixin(openstackSDConfigs)
"OpenStackSDConfigs defines a list of OpenStack service discovery configurations."
Note: This function appends passed data to existing values
fn spec.withParams
withParams(params)
"Optional HTTP URL parameters"
fn spec.withParamsMixin
withParamsMixin(params)
"Optional HTTP URL parameters"
Note: This function appends passed data to existing values
fn spec.withPath
withPath(path)
"HTTP path to scrape for metrics."
fn spec.withProxyURL
withProxyURL(proxyURL)
"ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint."
fn spec.withRelabelConfigs
withRelabelConfigs(relabelConfigs)
"RelabelConfigs to apply to samples during service discovery."
fn spec.withRelabelConfigsMixin
withRelabelConfigsMixin(relabelConfigs)
"RelabelConfigs to apply to samples during service discovery."
Note: This function appends passed data to existing values
fn spec.withSampleLimit
withSampleLimit(sampleLimit)
"SampleLimit defines per-scrape limit on number of scraped samples that will be accepted."
fn spec.withScheme
withScheme(scheme)
"HTTP scheme to use for scraping."
fn spec.withScrapeTimeout
withScrapeTimeout(scrapeTimeout)
"Timeout after which the scrape is ended"
fn spec.withScrape_interval
withScrape_interval(scrape_interval)
"ScrapeInterval is the same as Interval and has priority over it.\none of scrape_interval or interval can be used"
fn spec.withSeriesLimit
withSeriesLimit(seriesLimit)
"SeriesLimit defines per-scrape limit on number of unique time series\na single target can expose during all the scrapes on the time window of 24h."
fn spec.withStaticConfigs
withStaticConfigs(staticConfigs)
"StaticConfigs defines a list of static targets with a common label set."
fn spec.withStaticConfigsMixin
withStaticConfigsMixin(staticConfigs)
"StaticConfigs defines a list of static targets with a common label set."
Note: This function appends passed data to existing values
obj spec.authorization
"Authorization with http header Authorization"
fn spec.authorization.withCredentialsFile
withCredentialsFile(credentialsFile)
"File with value for authorization"
fn spec.authorization.withType
withType(type)
"Type of authorization, default to bearer"
obj spec.authorization.credentials
"Reference to the secret with value for authorization"
fn spec.authorization.credentials.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.authorization.credentials.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.authorization.credentials.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.azureSDConfigs
"AzureSDConfigs defines a list of Azure service discovery configurations."
fn spec.azureSDConfigs.withAuthenticationMethod
withAuthenticationMethod(authenticationMethod)
"# The authentication method, either OAuth or ManagedIdentity.\nSee https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview"
fn spec.azureSDConfigs.withClientID
withClientID(clientID)
"Optional client ID. Only required with the OAuth authentication method."
fn spec.azureSDConfigs.withEnvironment
withEnvironment(environment)
"The Azure environment."
fn spec.azureSDConfigs.withPort
withPort(port)
"The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule."
fn spec.azureSDConfigs.withResourceGroup
withResourceGroup(resourceGroup)
"Optional resource group name. Limits discovery to this resource group."
fn spec.azureSDConfigs.withSubscriptionID
withSubscriptionID(subscriptionID)
"The subscription ID. Always required."
fn spec.azureSDConfigs.withTenantID
withTenantID(tenantID)
"Optional tenant ID. Only required with the OAuth authentication method."
obj spec.azureSDConfigs.clientSecret
"Optional client secret. Only required with the OAuth authentication method."
fn spec.azureSDConfigs.clientSecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.azureSDConfigs.clientSecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.azureSDConfigs.clientSecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.basicAuth
"BasicAuth allow an endpoint to authenticate over basic authentication"
fn spec.basicAuth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.basicAuth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.basicAuth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.basicAuth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.basicAuth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.basicAuth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.basicAuth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.basicAuth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.basicAuth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.bearerTokenSecret
"Secret to mount to read bearer token for scraping targets. The secret\nneeds to be in the same namespace as the scrape object and accessible by\nthe victoria-metrics operator."
fn spec.bearerTokenSecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.bearerTokenSecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.bearerTokenSecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs
"ConsulSDConfigs defines a list of Consul service discovery configurations."
fn spec.consulSDConfigs.withAllowStale
withAllowStale(allowStale)
"Allow stale Consul results (see https://developer.hashicorp.com/consul/api-docs/features/consistency). Will reduce load on Consul.\nIf unset, use its default value."
fn spec.consulSDConfigs.withDatacenter
withDatacenter(datacenter)
"Consul Datacenter name, if not provided it will use the local Consul Agent Datacenter."
fn spec.consulSDConfigs.withFollowRedirects
withFollowRedirects(followRedirects)
"Configure whether HTTP requests follow HTTP 3xx redirects.\nIf unset, use its default value."
fn spec.consulSDConfigs.withNamespace
withNamespace(namespace)
"Namespaces are only supported in Consul Enterprise."
fn spec.consulSDConfigs.withNodeMeta
withNodeMeta(nodeMeta)
"Node metadata key/value pairs to filter nodes for a given service."
fn spec.consulSDConfigs.withNodeMetaMixin
withNodeMetaMixin(nodeMeta)
"Node metadata key/value pairs to filter nodes for a given service."
Note: This function appends passed data to existing values
fn spec.consulSDConfigs.withPartition
withPartition(partition)
"Admin Partitions are only supported in Consul Enterprise."
fn spec.consulSDConfigs.withProxyURL
withProxyURL(proxyURL)
"ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint."
fn spec.consulSDConfigs.withScheme
withScheme(scheme)
"HTTP Scheme default \"http\
fn spec.consulSDConfigs.withServer
withServer(server)
"A valid string consisting of a hostname or IP followed by an optional port number."
fn spec.consulSDConfigs.withServices
withServices(services)
"A list of services for which targets are retrieved. If omitted, all services are scraped."
fn spec.consulSDConfigs.withServicesMixin
withServicesMixin(services)
"A list of services for which targets are retrieved. If omitted, all services are scraped."
Note: This function appends passed data to existing values
fn spec.consulSDConfigs.withTagSeparator
withTagSeparator(tagSeparator)
"The string by which Consul tags are joined into the tag label.\nIf unset, use its default value."
fn spec.consulSDConfigs.withTags
withTags(tags)
"An optional list of tags used to filter nodes for a given service. Services must contain all tags in the list."
fn spec.consulSDConfigs.withTagsMixin
withTagsMixin(tags)
"An optional list of tags used to filter nodes for a given service. Services must contain all tags in the list."
Note: This function appends passed data to existing values
obj spec.consulSDConfigs.authorization
"Authorization header to use on every scrape request."
fn spec.consulSDConfigs.authorization.withCredentialsFile
withCredentialsFile(credentialsFile)
"File with value for authorization"
fn spec.consulSDConfigs.authorization.withType
withType(type)
"Type of authorization, default to bearer"
obj spec.consulSDConfigs.authorization.credentials
"Reference to the secret with value for authorization"
fn spec.consulSDConfigs.authorization.credentials.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.authorization.credentials.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.authorization.credentials.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.basicAuth
"BasicAuth information to use on every scrape request."
fn spec.consulSDConfigs.basicAuth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.consulSDConfigs.basicAuth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.consulSDConfigs.basicAuth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.basicAuth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.basicAuth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.basicAuth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.consulSDConfigs.basicAuth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.basicAuth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.basicAuth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.oauth2
"OAuth2 defines auth configuration"
fn spec.consulSDConfigs.oauth2.withClient_secret_file
withClient_secret_file(client_secret_file)
"ClientSecretFile defines path for client secret file."
fn spec.consulSDConfigs.oauth2.withEndpoint_params
withEndpoint_params(endpoint_params)
"Parameters to append to the token URL"
fn spec.consulSDConfigs.oauth2.withEndpoint_paramsMixin
withEndpoint_paramsMixin(endpoint_params)
"Parameters to append to the token URL"
Note: This function appends passed data to existing values
fn spec.consulSDConfigs.oauth2.withScopes
withScopes(scopes)
"OAuth2 scopes used for the token request"
fn spec.consulSDConfigs.oauth2.withScopesMixin
withScopesMixin(scopes)
"OAuth2 scopes used for the token request"
Note: This function appends passed data to existing values
fn spec.consulSDConfigs.oauth2.withToken_url
withToken_url(token_url)
"The URL to fetch the token from"
obj spec.consulSDConfigs.oauth2.client_id
"The secret or configmap containing the OAuth2 client id"
obj spec.consulSDConfigs.oauth2.client_id.configMap
"ConfigMap containing data to use for the targets."
fn spec.consulSDConfigs.oauth2.client_id.configMap.withKey
withKey(key)
"The key to select."
fn spec.consulSDConfigs.oauth2.client_id.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.oauth2.client_id.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.consulSDConfigs.oauth2.client_id.secret
"Secret containing data to use for the targets."
fn spec.consulSDConfigs.oauth2.client_id.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.oauth2.client_id.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.oauth2.client_id.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.oauth2.client_secret
"The secret containing the OAuth2 client secret"
fn spec.consulSDConfigs.oauth2.client_secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.oauth2.client_secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.oauth2.client_secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config
"ProxyClientConfig configures proxy auth settings for scraping\nSee feature description"
fn spec.consulSDConfigs.proxy_client_config.withBearer_token_file
withBearer_token_file(bearer_token_file)
obj spec.consulSDConfigs.proxy_client_config.basic_auth
"BasicAuth allow an endpoint to authenticate over basic authentication"
fn spec.consulSDConfigs.proxy_client_config.basic_auth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.consulSDConfigs.proxy_client_config.basic_auth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.consulSDConfigs.proxy_client_config.basic_auth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.proxy_client_config.basic_auth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.basic_auth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.basic_auth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.consulSDConfigs.proxy_client_config.basic_auth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.proxy_client_config.basic_auth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.basic_auth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.bearer_token
"SecretKeySelector selects a key of a Secret."
fn spec.consulSDConfigs.proxy_client_config.bearer_token.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.proxy_client_config.bearer_token.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.bearer_token.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.tls_config
"TLSConfig specifies TLSConfig configuration parameters."
fn spec.consulSDConfigs.proxy_client_config.tls_config.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.consulSDConfigs.proxy_client_config.tls_config.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.consulSDConfigs.proxy_client_config.tls_config.ca
"Stuct containing the CA cert to use for the targets."
obj spec.consulSDConfigs.proxy_client_config.tls_config.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.consulSDConfigs.proxy_client_config.tls_config.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.tls_config.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.tls_config.ca.secret
"Secret containing data to use for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.proxy_client_config.tls_config.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.tls_config.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.tls_config.cert
"Struct containing the client cert file for the targets."
obj spec.consulSDConfigs.proxy_client_config.tls_config.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.consulSDConfigs.proxy_client_config.tls_config.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.tls_config.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.tls_config.cert.secret
"Secret containing data to use for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.proxy_client_config.tls_config.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.tls_config.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.proxy_client_config.tls_config.keySecret
"Secret containing the client key file for the targets."
fn spec.consulSDConfigs.proxy_client_config.tls_config.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.proxy_client_config.tls_config.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.proxy_client_config.tls_config.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.tlsConfig
"TLS configuration to use on every scrape request"
fn spec.consulSDConfigs.tlsConfig.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.consulSDConfigs.tlsConfig.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.consulSDConfigs.tlsConfig.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.consulSDConfigs.tlsConfig.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.consulSDConfigs.tlsConfig.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.consulSDConfigs.tlsConfig.ca
"Stuct containing the CA cert to use for the targets."
obj spec.consulSDConfigs.tlsConfig.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.consulSDConfigs.tlsConfig.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.consulSDConfigs.tlsConfig.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.tlsConfig.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.consulSDConfigs.tlsConfig.ca.secret
"Secret containing data to use for the targets."
fn spec.consulSDConfigs.tlsConfig.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.tlsConfig.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.tlsConfig.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.tlsConfig.cert
"Struct containing the client cert file for the targets."
obj spec.consulSDConfigs.tlsConfig.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.consulSDConfigs.tlsConfig.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.consulSDConfigs.tlsConfig.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.tlsConfig.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.consulSDConfigs.tlsConfig.cert.secret
"Secret containing data to use for the targets."
fn spec.consulSDConfigs.tlsConfig.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.tlsConfig.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.tlsConfig.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.tlsConfig.keySecret
"Secret containing the client key file for the targets."
fn spec.consulSDConfigs.tlsConfig.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.tlsConfig.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.tlsConfig.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.consulSDConfigs.tokenRef
"Consul ACL TokenRef, if not provided it will use the ACL from the local Consul Agent."
fn spec.consulSDConfigs.tokenRef.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.consulSDConfigs.tokenRef.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.consulSDConfigs.tokenRef.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs
"DigitalOceanSDConfigs defines a list of DigitalOcean service discovery configurations."
fn spec.digitalOceanSDConfigs.withFollowRedirects
withFollowRedirects(followRedirects)
"Configure whether HTTP requests follow HTTP 3xx redirects."
fn spec.digitalOceanSDConfigs.withPort
withPort(port)
"The port to scrape metrics from."
fn spec.digitalOceanSDConfigs.withProxyURL
withProxyURL(proxyURL)
"ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint."
obj spec.digitalOceanSDConfigs.authorization
"Authorization header to use on every scrape request."
fn spec.digitalOceanSDConfigs.authorization.withCredentialsFile
withCredentialsFile(credentialsFile)
"File with value for authorization"
fn spec.digitalOceanSDConfigs.authorization.withType
withType(type)
"Type of authorization, default to bearer"
obj spec.digitalOceanSDConfigs.authorization.credentials
"Reference to the secret with value for authorization"
fn spec.digitalOceanSDConfigs.authorization.credentials.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.authorization.credentials.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.authorization.credentials.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.oauth2
"OAuth2 defines auth configuration"
fn spec.digitalOceanSDConfigs.oauth2.withClient_secret_file
withClient_secret_file(client_secret_file)
"ClientSecretFile defines path for client secret file."
fn spec.digitalOceanSDConfigs.oauth2.withEndpoint_params
withEndpoint_params(endpoint_params)
"Parameters to append to the token URL"
fn spec.digitalOceanSDConfigs.oauth2.withEndpoint_paramsMixin
withEndpoint_paramsMixin(endpoint_params)
"Parameters to append to the token URL"
Note: This function appends passed data to existing values
fn spec.digitalOceanSDConfigs.oauth2.withScopes
withScopes(scopes)
"OAuth2 scopes used for the token request"
fn spec.digitalOceanSDConfigs.oauth2.withScopesMixin
withScopesMixin(scopes)
"OAuth2 scopes used for the token request"
Note: This function appends passed data to existing values
fn spec.digitalOceanSDConfigs.oauth2.withToken_url
withToken_url(token_url)
"The URL to fetch the token from"
obj spec.digitalOceanSDConfigs.oauth2.client_id
"The secret or configmap containing the OAuth2 client id"
obj spec.digitalOceanSDConfigs.oauth2.client_id.configMap
"ConfigMap containing data to use for the targets."
fn spec.digitalOceanSDConfigs.oauth2.client_id.configMap.withKey
withKey(key)
"The key to select."
fn spec.digitalOceanSDConfigs.oauth2.client_id.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.oauth2.client_id.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.digitalOceanSDConfigs.oauth2.client_id.secret
"Secret containing data to use for the targets."
fn spec.digitalOceanSDConfigs.oauth2.client_id.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.oauth2.client_id.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.oauth2.client_id.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.oauth2.client_secret
"The secret containing the OAuth2 client secret"
fn spec.digitalOceanSDConfigs.oauth2.client_secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.oauth2.client_secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.oauth2.client_secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config
"ProxyClientConfig configures proxy auth settings for scraping\nSee feature description"
fn spec.digitalOceanSDConfigs.proxy_client_config.withBearer_token_file
withBearer_token_file(bearer_token_file)
obj spec.digitalOceanSDConfigs.proxy_client_config.basic_auth
"BasicAuth allow an endpoint to authenticate over basic authentication"
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.basic_auth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.bearer_token
"SecretKeySelector selects a key of a Secret."
fn spec.digitalOceanSDConfigs.proxy_client_config.bearer_token.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.proxy_client_config.bearer_token.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.bearer_token.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config
"TLSConfig specifies TLSConfig configuration parameters."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca
"Stuct containing the CA cert to use for the targets."
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.secret
"Secret containing data to use for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert
"Struct containing the client cert file for the targets."
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.secret
"Secret containing data to use for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.proxy_client_config.tls_config.keySecret
"Secret containing the client key file for the targets."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.proxy_client_config.tls_config.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.tlsConfig
"TLS configuration to use on every scrape request"
fn spec.digitalOceanSDConfigs.tlsConfig.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.digitalOceanSDConfigs.tlsConfig.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.digitalOceanSDConfigs.tlsConfig.ca
"Stuct containing the CA cert to use for the targets."
obj spec.digitalOceanSDConfigs.tlsConfig.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.digitalOceanSDConfigs.tlsConfig.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.tlsConfig.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.digitalOceanSDConfigs.tlsConfig.ca.secret
"Secret containing data to use for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.tlsConfig.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.tlsConfig.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.tlsConfig.cert
"Struct containing the client cert file for the targets."
obj spec.digitalOceanSDConfigs.tlsConfig.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.digitalOceanSDConfigs.tlsConfig.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.tlsConfig.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.digitalOceanSDConfigs.tlsConfig.cert.secret
"Secret containing data to use for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.tlsConfig.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.tlsConfig.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.digitalOceanSDConfigs.tlsConfig.keySecret
"Secret containing the client key file for the targets."
fn spec.digitalOceanSDConfigs.tlsConfig.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.digitalOceanSDConfigs.tlsConfig.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.digitalOceanSDConfigs.tlsConfig.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.dnsSDConfigs
"DNSSDConfigs defines a list of DNS service discovery configurations."
fn spec.dnsSDConfigs.withNames
withNames(names)
"A list of DNS domain names to be queried."
fn spec.dnsSDConfigs.withNamesMixin
withNamesMixin(names)
"A list of DNS domain names to be queried."
Note: This function appends passed data to existing values
fn spec.dnsSDConfigs.withPort
withPort(port)
"The port number used if the query type is not SRV\nIgnored for SRV records"
fn spec.dnsSDConfigs.withType
withType(type)
obj spec.ec2SDConfigs
"EC2SDConfigs defines a list of EC2 service discovery configurations."
fn spec.ec2SDConfigs.withFilters
withFilters(filters)
"Filters can be used optionally to filter the instance list by other criteria.\nAvailable filter criteria can be found here:\nhttps://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html\nFilter API documentation: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Filter.html"
fn spec.ec2SDConfigs.withFiltersMixin
withFiltersMixin(filters)
"Filters can be used optionally to filter the instance list by other criteria.\nAvailable filter criteria can be found here:\nhttps://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html\nFilter API documentation: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Filter.html"
Note: This function appends passed data to existing values
fn spec.ec2SDConfigs.withPort
withPort(port)
"The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule."
fn spec.ec2SDConfigs.withRegion
withRegion(region)
"The AWS region"
fn spec.ec2SDConfigs.withRoleARN
withRoleARN(roleARN)
"AWS Role ARN, an alternative to using AWS API keys."
obj spec.ec2SDConfigs.accessKey
"AccessKey is the AWS API key."
fn spec.ec2SDConfigs.accessKey.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.ec2SDConfigs.accessKey.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.ec2SDConfigs.accessKey.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.ec2SDConfigs.filters
"Filters can be used optionally to filter the instance list by other criteria.\nAvailable filter criteria can be found here:\nhttps://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html\nFilter API documentation: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Filter.html"
fn spec.ec2SDConfigs.filters.withName
withName(name)
fn spec.ec2SDConfigs.filters.withValues
withValues(values)
fn spec.ec2SDConfigs.filters.withValuesMixin
withValuesMixin(values)
Note: This function appends passed data to existing values
obj spec.ec2SDConfigs.secretKey
"SecretKey is the AWS API secret."
fn spec.ec2SDConfigs.secretKey.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.ec2SDConfigs.secretKey.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.ec2SDConfigs.secretKey.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.fileSDConfigs
"FileSDConfigs defines a list of file service discovery configurations."
fn spec.fileSDConfigs.withFiles
withFiles(files)
"List of files to be used for file discovery."
fn spec.fileSDConfigs.withFilesMixin
withFilesMixin(files)
"List of files to be used for file discovery."
Note: This function appends passed data to existing values
obj spec.gceSDConfigs
"GCESDConfigs defines a list of GCE service discovery configurations."
fn spec.gceSDConfigs.withFilter
withFilter(filter)
"Filter can be used optionally to filter the instance list by other criteria\nSyntax of this filter is described in the filter query parameter section:\nhttps://cloud.google.com/compute/docs/reference/latest/instances/list"
fn spec.gceSDConfigs.withPort
withPort(port)
"The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule."
fn spec.gceSDConfigs.withProject
withProject(project)
"The Google Cloud Project ID"
fn spec.gceSDConfigs.withTagSeparator
withTagSeparator(tagSeparator)
"The tag separator is used to separate the tags on concatenation"
fn spec.gceSDConfigs.withZone
withZone(zone)
"The zone of the scrape targets. If you need multiple zones use multiple GCESDConfigs."
obj spec.httpSDConfigs
"HTTPSDConfigs defines a list of HTTP service discovery configurations."
fn spec.httpSDConfigs.withProxyURL
withProxyURL(proxyURL)
"ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint."
fn spec.httpSDConfigs.withUrl
withUrl(url)
"URL from which the targets are fetched."
obj spec.httpSDConfigs.authorization
"Authorization header to use on every scrape request."
fn spec.httpSDConfigs.authorization.withCredentialsFile
withCredentialsFile(credentialsFile)
"File with value for authorization"
fn spec.httpSDConfigs.authorization.withType
withType(type)
"Type of authorization, default to bearer"
obj spec.httpSDConfigs.authorization.credentials
"Reference to the secret with value for authorization"
fn spec.httpSDConfigs.authorization.credentials.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.authorization.credentials.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.authorization.credentials.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.basicAuth
"BasicAuth information to use on every scrape request."
fn spec.httpSDConfigs.basicAuth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.httpSDConfigs.basicAuth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.httpSDConfigs.basicAuth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.basicAuth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.basicAuth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.basicAuth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.httpSDConfigs.basicAuth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.basicAuth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.basicAuth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config
"ProxyClientConfig configures proxy auth settings for scraping\nSee feature description"
fn spec.httpSDConfigs.proxy_client_config.withBearer_token_file
withBearer_token_file(bearer_token_file)
obj spec.httpSDConfigs.proxy_client_config.basic_auth
"BasicAuth allow an endpoint to authenticate over basic authentication"
fn spec.httpSDConfigs.proxy_client_config.basic_auth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.httpSDConfigs.proxy_client_config.basic_auth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.httpSDConfigs.proxy_client_config.basic_auth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.proxy_client_config.basic_auth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.basic_auth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.basic_auth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.httpSDConfigs.proxy_client_config.basic_auth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.proxy_client_config.basic_auth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.basic_auth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.bearer_token
"SecretKeySelector selects a key of a Secret."
fn spec.httpSDConfigs.proxy_client_config.bearer_token.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.proxy_client_config.bearer_token.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.bearer_token.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.tls_config
"TLSConfig specifies TLSConfig configuration parameters."
fn spec.httpSDConfigs.proxy_client_config.tls_config.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.httpSDConfigs.proxy_client_config.tls_config.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.httpSDConfigs.proxy_client_config.tls_config.ca
"Stuct containing the CA cert to use for the targets."
obj spec.httpSDConfigs.proxy_client_config.tls_config.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.httpSDConfigs.proxy_client_config.tls_config.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.tls_config.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.tls_config.ca.secret
"Secret containing data to use for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.proxy_client_config.tls_config.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.tls_config.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.tls_config.cert
"Struct containing the client cert file for the targets."
obj spec.httpSDConfigs.proxy_client_config.tls_config.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.httpSDConfigs.proxy_client_config.tls_config.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.tls_config.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.tls_config.cert.secret
"Secret containing data to use for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.proxy_client_config.tls_config.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.tls_config.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.proxy_client_config.tls_config.keySecret
"Secret containing the client key file for the targets."
fn spec.httpSDConfigs.proxy_client_config.tls_config.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.proxy_client_config.tls_config.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.proxy_client_config.tls_config.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.tlsConfig
"TLS configuration to use on every scrape request"
fn spec.httpSDConfigs.tlsConfig.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.httpSDConfigs.tlsConfig.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.httpSDConfigs.tlsConfig.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.httpSDConfigs.tlsConfig.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.httpSDConfigs.tlsConfig.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.httpSDConfigs.tlsConfig.ca
"Stuct containing the CA cert to use for the targets."
obj spec.httpSDConfigs.tlsConfig.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.httpSDConfigs.tlsConfig.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.httpSDConfigs.tlsConfig.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.tlsConfig.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.httpSDConfigs.tlsConfig.ca.secret
"Secret containing data to use for the targets."
fn spec.httpSDConfigs.tlsConfig.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.tlsConfig.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.tlsConfig.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.tlsConfig.cert
"Struct containing the client cert file for the targets."
obj spec.httpSDConfigs.tlsConfig.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.httpSDConfigs.tlsConfig.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.httpSDConfigs.tlsConfig.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.tlsConfig.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.httpSDConfigs.tlsConfig.cert.secret
"Secret containing data to use for the targets."
fn spec.httpSDConfigs.tlsConfig.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.tlsConfig.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.tlsConfig.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.httpSDConfigs.tlsConfig.keySecret
"Secret containing the client key file for the targets."
fn spec.httpSDConfigs.tlsConfig.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.httpSDConfigs.tlsConfig.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.httpSDConfigs.tlsConfig.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs
"KubernetesSDConfigs defines a list of Kubernetes service discovery configurations."
fn spec.kubernetesSDConfigs.withApiServer
withApiServer(apiServer)
"The API server address consisting of a hostname or IP address followed\nby an optional port number.\nIf left empty, assuming process is running inside\nof the cluster. It will discover API servers automatically and use the pod's\nCA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/."
fn spec.kubernetesSDConfigs.withFollowRedirects
withFollowRedirects(followRedirects)
"Configure whether HTTP requests follow HTTP 3xx redirects."
fn spec.kubernetesSDConfigs.withProxyURL
withProxyURL(proxyURL)
"ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint."
fn spec.kubernetesSDConfigs.withRole
withRole(role)
"Role of the Kubernetes entities that should be discovered."
fn spec.kubernetesSDConfigs.withSelectors
withSelectors(selectors)
"Selector to select objects."
fn spec.kubernetesSDConfigs.withSelectorsMixin
withSelectorsMixin(selectors)
"Selector to select objects."
Note: This function appends passed data to existing values
obj spec.kubernetesSDConfigs.attach_metadata
"AttachMetadata configures metadata attaching from service discovery"
fn spec.kubernetesSDConfigs.attach_metadata.withNode
withNode(node)
"Node instructs vmagent to add node specific metadata from service discovery\nValid for roles: pod, endpoints, endpointslice."
obj spec.kubernetesSDConfigs.authorization
"Authorization header to use on every scrape request."
fn spec.kubernetesSDConfigs.authorization.withCredentialsFile
withCredentialsFile(credentialsFile)
"File with value for authorization"
fn spec.kubernetesSDConfigs.authorization.withType
withType(type)
"Type of authorization, default to bearer"
obj spec.kubernetesSDConfigs.authorization.credentials
"Reference to the secret with value for authorization"
fn spec.kubernetesSDConfigs.authorization.credentials.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.authorization.credentials.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.authorization.credentials.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.basicAuth
"BasicAuth information to use on every scrape request."
fn spec.kubernetesSDConfigs.basicAuth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.kubernetesSDConfigs.basicAuth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.kubernetesSDConfigs.basicAuth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.basicAuth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.basicAuth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.basicAuth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.kubernetesSDConfigs.basicAuth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.basicAuth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.basicAuth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.namespaces
"Optional namespace discovery. If omitted, discover targets across all namespaces."
fn spec.kubernetesSDConfigs.namespaces.withNames
withNames(names)
"List of namespaces where to watch for resources.\nIf empty and ownNamespace
isn't true, watch for resources in all namespaces."
fn spec.kubernetesSDConfigs.namespaces.withNamesMixin
withNamesMixin(names)
"List of namespaces where to watch for resources.\nIf empty and ownNamespace
isn't true, watch for resources in all namespaces."
Note: This function appends passed data to existing values
fn spec.kubernetesSDConfigs.namespaces.withOwnNamespace
withOwnNamespace(ownNamespace)
"Includes the namespace in which the pod exists to the list of watched namespaces."
obj spec.kubernetesSDConfigs.oauth2
"OAuth2 defines auth configuration"
fn spec.kubernetesSDConfigs.oauth2.withClient_secret_file
withClient_secret_file(client_secret_file)
"ClientSecretFile defines path for client secret file."
fn spec.kubernetesSDConfigs.oauth2.withEndpoint_params
withEndpoint_params(endpoint_params)
"Parameters to append to the token URL"
fn spec.kubernetesSDConfigs.oauth2.withEndpoint_paramsMixin
withEndpoint_paramsMixin(endpoint_params)
"Parameters to append to the token URL"
Note: This function appends passed data to existing values
fn spec.kubernetesSDConfigs.oauth2.withScopes
withScopes(scopes)
"OAuth2 scopes used for the token request"
fn spec.kubernetesSDConfigs.oauth2.withScopesMixin
withScopesMixin(scopes)
"OAuth2 scopes used for the token request"
Note: This function appends passed data to existing values
fn spec.kubernetesSDConfigs.oauth2.withToken_url
withToken_url(token_url)
"The URL to fetch the token from"
obj spec.kubernetesSDConfigs.oauth2.client_id
"The secret or configmap containing the OAuth2 client id"
obj spec.kubernetesSDConfigs.oauth2.client_id.configMap
"ConfigMap containing data to use for the targets."
fn spec.kubernetesSDConfigs.oauth2.client_id.configMap.withKey
withKey(key)
"The key to select."
fn spec.kubernetesSDConfigs.oauth2.client_id.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.oauth2.client_id.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.kubernetesSDConfigs.oauth2.client_id.secret
"Secret containing data to use for the targets."
fn spec.kubernetesSDConfigs.oauth2.client_id.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.oauth2.client_id.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.oauth2.client_id.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.oauth2.client_secret
"The secret containing the OAuth2 client secret"
fn spec.kubernetesSDConfigs.oauth2.client_secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.oauth2.client_secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.oauth2.client_secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config
"ProxyClientConfig configures proxy auth settings for scraping\nSee feature description"
fn spec.kubernetesSDConfigs.proxy_client_config.withBearer_token_file
withBearer_token_file(bearer_token_file)
obj spec.kubernetesSDConfigs.proxy_client_config.basic_auth
"BasicAuth allow an endpoint to authenticate over basic authentication"
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.kubernetesSDConfigs.proxy_client_config.basic_auth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.basic_auth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.basic_auth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.bearer_token
"SecretKeySelector selects a key of a Secret."
fn spec.kubernetesSDConfigs.proxy_client_config.bearer_token.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.proxy_client_config.bearer_token.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.bearer_token.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config
"TLSConfig specifies TLSConfig configuration parameters."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca
"Stuct containing the CA cert to use for the targets."
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.secret
"Secret containing data to use for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert
"Struct containing the client cert file for the targets."
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.secret
"Secret containing data to use for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.proxy_client_config.tls_config.keySecret
"Secret containing the client key file for the targets."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.proxy_client_config.tls_config.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.selectors
"Selector to select objects."
fn spec.kubernetesSDConfigs.selectors.withField
withField(field)
fn spec.kubernetesSDConfigs.selectors.withLabel
withLabel(label)
fn spec.kubernetesSDConfigs.selectors.withRole
withRole(role)
obj spec.kubernetesSDConfigs.tlsConfig
"TLS configuration to use on every scrape request"
fn spec.kubernetesSDConfigs.tlsConfig.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.kubernetesSDConfigs.tlsConfig.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.kubernetesSDConfigs.tlsConfig.ca
"Stuct containing the CA cert to use for the targets."
obj spec.kubernetesSDConfigs.tlsConfig.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.kubernetesSDConfigs.tlsConfig.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.tlsConfig.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.kubernetesSDConfigs.tlsConfig.ca.secret
"Secret containing data to use for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.tlsConfig.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.tlsConfig.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.tlsConfig.cert
"Struct containing the client cert file for the targets."
obj spec.kubernetesSDConfigs.tlsConfig.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.kubernetesSDConfigs.tlsConfig.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.tlsConfig.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.kubernetesSDConfigs.tlsConfig.cert.secret
"Secret containing data to use for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.tlsConfig.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.tlsConfig.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.kubernetesSDConfigs.tlsConfig.keySecret
"Secret containing the client key file for the targets."
fn spec.kubernetesSDConfigs.tlsConfig.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.kubernetesSDConfigs.tlsConfig.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.kubernetesSDConfigs.tlsConfig.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.metricRelabelConfigs
"MetricRelabelConfigs to apply to samples after scrapping."
fn spec.metricRelabelConfigs.withAction
withAction(action)
"Action to perform based on regex matching. Default is 'replace'"
fn spec.metricRelabelConfigs.withIf
withIf(If)
"If represents metricsQL match expression (or list of expressions): '{name=~\"foo_.*\"}'"
fn spec.metricRelabelConfigs.withLabels
withLabels(labels)
"Labels is used together with Match for action: graphite
"
fn spec.metricRelabelConfigs.withLabelsMixin
withLabelsMixin(labels)
"Labels is used together with Match for action: graphite
"
Note: This function appends passed data to existing values
fn spec.metricRelabelConfigs.withMatch
withMatch(match)
"Match is used together with Labels for action: graphite
"
fn spec.metricRelabelConfigs.withModulus
withModulus(modulus)
"Modulus to take of the hash of the source label values."
fn spec.metricRelabelConfigs.withRegex
withRegex(regex)
"Regular expression against which the extracted value is matched. Default is '(.*)'\nvictoriaMetrics supports multiline regex joined with |\nhttps://docs.victoriametrics.com/vmagent/#relabeling-enhancements"
fn spec.metricRelabelConfigs.withReplacement
withReplacement(replacement)
"Replacement value against which a regex replace is performed if the\nregular expression matches. Regex capture groups are available. Default is '$1'"
fn spec.metricRelabelConfigs.withSeparator
withSeparator(separator)
"Separator placed between concatenated source label values. default is ';'."
fn spec.metricRelabelConfigs.withSourceLabels
withSourceLabels(sourceLabels)
"The source labels select values from existing labels. Their content is concatenated\nusing the configured separator and matched against the configured regular expression\nfor the replace, keep, and drop actions."
fn spec.metricRelabelConfigs.withSourceLabelsMixin
withSourceLabelsMixin(sourceLabels)
"The source labels select values from existing labels. Their content is concatenated\nusing the configured separator and matched against the configured regular expression\nfor the replace, keep, and drop actions."
Note: This function appends passed data to existing values
fn spec.metricRelabelConfigs.withSource_labels
withSource_labels(source_labels)
"UnderScoreSourceLabels - additional form of source labels source_labels\nfor compatibility with original relabel config.\nif set both sourceLabels and source_labels, sourceLabels has priority.\nfor details https://github.com/VictoriaMetrics/operator/issues/131"
fn spec.metricRelabelConfigs.withSource_labelsMixin
withSource_labelsMixin(source_labels)
"UnderScoreSourceLabels - additional form of source labels source_labels\nfor compatibility with original relabel config.\nif set both sourceLabels and source_labels, sourceLabels has priority.\nfor details https://github.com/VictoriaMetrics/operator/issues/131"
Note: This function appends passed data to existing values
fn spec.metricRelabelConfigs.withTargetLabel
withTargetLabel(targetLabel)
"Label to which the resulting value is written in a replace action.\nIt is mandatory for replace actions. Regex capture groups are available."
fn spec.metricRelabelConfigs.withTarget_label
withTarget_label(target_label)
"UnderScoreTargetLabel - additional form of target label - target_label\nfor compatibility with original relabel config.\nif set both targetLabel and target_label, targetLabel has priority.\nfor details https://github.com/VictoriaMetrics/operator/issues/131"
obj spec.oauth2
"OAuth2 defines auth configuration"
fn spec.oauth2.withClient_secret_file
withClient_secret_file(client_secret_file)
"ClientSecretFile defines path for client secret file."
fn spec.oauth2.withEndpoint_params
withEndpoint_params(endpoint_params)
"Parameters to append to the token URL"
fn spec.oauth2.withEndpoint_paramsMixin
withEndpoint_paramsMixin(endpoint_params)
"Parameters to append to the token URL"
Note: This function appends passed data to existing values
fn spec.oauth2.withScopes
withScopes(scopes)
"OAuth2 scopes used for the token request"
fn spec.oauth2.withScopesMixin
withScopesMixin(scopes)
"OAuth2 scopes used for the token request"
Note: This function appends passed data to existing values
fn spec.oauth2.withToken_url
withToken_url(token_url)
"The URL to fetch the token from"
obj spec.oauth2.client_id
"The secret or configmap containing the OAuth2 client id"
obj spec.oauth2.client_id.configMap
"ConfigMap containing data to use for the targets."
fn spec.oauth2.client_id.configMap.withKey
withKey(key)
"The key to select."
fn spec.oauth2.client_id.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.oauth2.client_id.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.oauth2.client_id.secret
"Secret containing data to use for the targets."
fn spec.oauth2.client_id.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.oauth2.client_id.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.oauth2.client_id.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.oauth2.client_secret
"The secret containing the OAuth2 client secret"
fn spec.oauth2.client_secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.oauth2.client_secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.oauth2.client_secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.openstackSDConfigs
"OpenStackSDConfigs defines a list of OpenStack service discovery configurations."
fn spec.openstackSDConfigs.withAllTenants
withAllTenants(allTenants)
"Whether the service discovery should list all instances for all projects.\nIt is only relevant for the 'instance' role and usually requires admin permissions."
fn spec.openstackSDConfigs.withApplicationCredentialId
withApplicationCredentialId(applicationCredentialId)
"ApplicationCredentialID"
fn spec.openstackSDConfigs.withApplicationCredentialName
withApplicationCredentialName(applicationCredentialName)
"The ApplicationCredentialID or ApplicationCredentialName fields are\nrequired if using an application credential to authenticate. Some providers\nallow you to create an application credential to authenticate rather than a\npassword."
fn spec.openstackSDConfigs.withAvailability
withAvailability(availability)
"Availability of the endpoint to connect to."
fn spec.openstackSDConfigs.withDomainID
withDomainID(domainID)
"DomainID"
fn spec.openstackSDConfigs.withDomainName
withDomainName(domainName)
"At most one of domainId and domainName must be provided if using username\nwith Identity V3. Otherwise, either are optional."
fn spec.openstackSDConfigs.withIdentityEndpoint
withIdentityEndpoint(identityEndpoint)
"IdentityEndpoint specifies the HTTP endpoint that is required to work with\nthe Identity API of the appropriate version."
fn spec.openstackSDConfigs.withPort
withPort(port)
"The port to scrape metrics from. If using the public IP address, this must\ninstead be specified in the relabeling rule."
fn spec.openstackSDConfigs.withProjectID
withProjectID(projectID)
" ProjectID"
fn spec.openstackSDConfigs.withProjectName
withProjectName(projectName)
"The ProjectId and ProjectName fields are optional for the Identity V2 API.\nSome providers allow you to specify a ProjectName instead of the ProjectId.\nSome require both. Your provider's authentication policies will determine\nhow these fields influence authentication."
fn spec.openstackSDConfigs.withRegion
withRegion(region)
"The OpenStack Region."
fn spec.openstackSDConfigs.withRole
withRole(role)
"The OpenStack role of entities that should be discovered."
fn spec.openstackSDConfigs.withUserid
withUserid(userid)
"UserID"
fn spec.openstackSDConfigs.withUsername
withUsername(username)
"Username is required if using Identity V2 API. Consult with your provider's\ncontrol panel to discover your account's username.\nIn Identity V3, either userid or a combination of username\nand domainId or domainName are needed"
obj spec.openstackSDConfigs.applicationCredentialSecret
"The applicationCredentialSecret field is required if using an application\ncredential to authenticate."
fn spec.openstackSDConfigs.applicationCredentialSecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.openstackSDConfigs.applicationCredentialSecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.applicationCredentialSecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.openstackSDConfigs.password
"Password for the Identity V2 and V3 APIs. Consult with your provider's\ncontrol panel to discover your account's preferred method of authentication."
fn spec.openstackSDConfigs.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.openstackSDConfigs.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.openstackSDConfigs.tlsConfig
"TLS configuration to use on every scrape request"
fn spec.openstackSDConfigs.tlsConfig.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.openstackSDConfigs.tlsConfig.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.openstackSDConfigs.tlsConfig.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.openstackSDConfigs.tlsConfig.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.openstackSDConfigs.tlsConfig.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.openstackSDConfigs.tlsConfig.ca
"Stuct containing the CA cert to use for the targets."
obj spec.openstackSDConfigs.tlsConfig.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.openstackSDConfigs.tlsConfig.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.openstackSDConfigs.tlsConfig.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.tlsConfig.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.openstackSDConfigs.tlsConfig.ca.secret
"Secret containing data to use for the targets."
fn spec.openstackSDConfigs.tlsConfig.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.openstackSDConfigs.tlsConfig.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.tlsConfig.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.openstackSDConfigs.tlsConfig.cert
"Struct containing the client cert file for the targets."
obj spec.openstackSDConfigs.tlsConfig.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.openstackSDConfigs.tlsConfig.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.openstackSDConfigs.tlsConfig.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.tlsConfig.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.openstackSDConfigs.tlsConfig.cert.secret
"Secret containing data to use for the targets."
fn spec.openstackSDConfigs.tlsConfig.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.openstackSDConfigs.tlsConfig.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.tlsConfig.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.openstackSDConfigs.tlsConfig.keySecret
"Secret containing the client key file for the targets."
fn spec.openstackSDConfigs.tlsConfig.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.openstackSDConfigs.tlsConfig.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.openstackSDConfigs.tlsConfig.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.relabelConfigs
"RelabelConfigs to apply to samples during service discovery."
fn spec.relabelConfigs.withAction
withAction(action)
"Action to perform based on regex matching. Default is 'replace'"
fn spec.relabelConfigs.withIf
withIf(If)
"If represents metricsQL match expression (or list of expressions): '{name=~\"foo_.*\"}'"
fn spec.relabelConfigs.withLabels
withLabels(labels)
"Labels is used together with Match for action: graphite
"
fn spec.relabelConfigs.withLabelsMixin
withLabelsMixin(labels)
"Labels is used together with Match for action: graphite
"
Note: This function appends passed data to existing values
fn spec.relabelConfigs.withMatch
withMatch(match)
"Match is used together with Labels for action: graphite
"
fn spec.relabelConfigs.withModulus
withModulus(modulus)
"Modulus to take of the hash of the source label values."
fn spec.relabelConfigs.withRegex
withRegex(regex)
"Regular expression against which the extracted value is matched. Default is '(.*)'\nvictoriaMetrics supports multiline regex joined with |\nhttps://docs.victoriametrics.com/vmagent/#relabeling-enhancements"
fn spec.relabelConfigs.withReplacement
withReplacement(replacement)
"Replacement value against which a regex replace is performed if the\nregular expression matches. Regex capture groups are available. Default is '$1'"
fn spec.relabelConfigs.withSeparator
withSeparator(separator)
"Separator placed between concatenated source label values. default is ';'."
fn spec.relabelConfigs.withSourceLabels
withSourceLabels(sourceLabels)
"The source labels select values from existing labels. Their content is concatenated\nusing the configured separator and matched against the configured regular expression\nfor the replace, keep, and drop actions."
fn spec.relabelConfigs.withSourceLabelsMixin
withSourceLabelsMixin(sourceLabels)
"The source labels select values from existing labels. Their content is concatenated\nusing the configured separator and matched against the configured regular expression\nfor the replace, keep, and drop actions."
Note: This function appends passed data to existing values
fn spec.relabelConfigs.withSource_labels
withSource_labels(source_labels)
"UnderScoreSourceLabels - additional form of source labels source_labels\nfor compatibility with original relabel config.\nif set both sourceLabels and source_labels, sourceLabels has priority.\nfor details https://github.com/VictoriaMetrics/operator/issues/131"
fn spec.relabelConfigs.withSource_labelsMixin
withSource_labelsMixin(source_labels)
"UnderScoreSourceLabels - additional form of source labels source_labels\nfor compatibility with original relabel config.\nif set both sourceLabels and source_labels, sourceLabels has priority.\nfor details https://github.com/VictoriaMetrics/operator/issues/131"
Note: This function appends passed data to existing values
fn spec.relabelConfigs.withTargetLabel
withTargetLabel(targetLabel)
"Label to which the resulting value is written in a replace action.\nIt is mandatory for replace actions. Regex capture groups are available."
fn spec.relabelConfigs.withTarget_label
withTarget_label(target_label)
"UnderScoreTargetLabel - additional form of target label - target_label\nfor compatibility with original relabel config.\nif set both targetLabel and target_label, targetLabel has priority.\nfor details https://github.com/VictoriaMetrics/operator/issues/131"
obj spec.staticConfigs
"StaticConfigs defines a list of static targets with a common label set."
fn spec.staticConfigs.withLabels
withLabels(labels)
"Labels assigned to all metrics scraped from the targets."
fn spec.staticConfigs.withLabelsMixin
withLabelsMixin(labels)
"Labels assigned to all metrics scraped from the targets."
Note: This function appends passed data to existing values
fn spec.staticConfigs.withTargets
withTargets(targets)
"List of targets for this static configuration."
fn spec.staticConfigs.withTargetsMixin
withTargetsMixin(targets)
"List of targets for this static configuration."
Note: This function appends passed data to existing values
obj spec.tlsConfig
"TLSConfig configuration to use when scraping the endpoint"
fn spec.tlsConfig.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.tlsConfig.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.tlsConfig.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.tlsConfig.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.tlsConfig.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.tlsConfig.ca
"Stuct containing the CA cert to use for the targets."
obj spec.tlsConfig.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.tlsConfig.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.tlsConfig.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.tlsConfig.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.tlsConfig.ca.secret
"Secret containing data to use for the targets."
fn spec.tlsConfig.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.tlsConfig.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.tlsConfig.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.tlsConfig.cert
"Struct containing the client cert file for the targets."
obj spec.tlsConfig.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.tlsConfig.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.tlsConfig.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.tlsConfig.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.tlsConfig.cert.secret
"Secret containing data to use for the targets."
fn spec.tlsConfig.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.tlsConfig.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.tlsConfig.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.tlsConfig.keySecret
"Secret containing the client key file for the targets."
fn spec.tlsConfig.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.tlsConfig.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.tlsConfig.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vm_scrape_params
"VMScrapeParams defines VictoriaMetrics specific scrape parameters"
fn spec.vm_scrape_params.withDisable_compression
withDisable_compression(disable_compression)
"DisableCompression"
fn spec.vm_scrape_params.withDisable_keep_alive
withDisable_keep_alive(disable_keep_alive)
"disable_keepalive allows disabling HTTP keep-alive when scraping targets.\nBy default, HTTP keep-alive is enabled, so TCP connections to scrape targets\ncould be re-used.\nSee https://docs.victoriametrics.com/vmagent#scrape_config-enhancements"
fn spec.vm_scrape_params.withHeaders
withHeaders(headers)
"Headers allows sending custom headers to scrape targets\nmust be in of semicolon separated header with it's value\neg:\nheaderName: headerValue\nvmagent supports since 1.79.0 version"
fn spec.vm_scrape_params.withHeadersMixin
withHeadersMixin(headers)
"Headers allows sending custom headers to scrape targets\nmust be in of semicolon separated header with it's value\neg:\nheaderName: headerValue\nvmagent supports since 1.79.0 version"
Note: This function appends passed data to existing values
fn spec.vm_scrape_params.withNo_stale_markers
withNo_stale_markers(no_stale_markers)
fn spec.vm_scrape_params.withScrape_align_interval
withScrape_align_interval(scrape_align_interval)
fn spec.vm_scrape_params.withScrape_offset
withScrape_offset(scrape_offset)
fn spec.vm_scrape_params.withStream_parse
withStream_parse(stream_parse)
obj spec.vm_scrape_params.proxy_client_config
"ProxyClientConfig configures proxy auth settings for scraping\nSee feature description https://docs.victoriametrics.com/vmagent#scraping-targets-via-a-proxy"
fn spec.vm_scrape_params.proxy_client_config.withBearer_token_file
withBearer_token_file(bearer_token_file)
obj spec.vm_scrape_params.proxy_client_config.basic_auth
"BasicAuth allow an endpoint to authenticate over basic authentication"
fn spec.vm_scrape_params.proxy_client_config.basic_auth.withPassword_file
withPassword_file(password_file)
"PasswordFile defines path to password file at disk\nmust be pre-mounted"
obj spec.vm_scrape_params.proxy_client_config.basic_auth.password
"Password defines reference for secret with password value\nThe secret needs to be in the same namespace as scrape object"
fn spec.vm_scrape_params.proxy_client_config.basic_auth.password.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vm_scrape_params.proxy_client_config.basic_auth.password.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.basic_auth.password.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.basic_auth.username
"Username defines reference for secret with username value\nThe secret needs to be in the same namespace as scrape object"
fn spec.vm_scrape_params.proxy_client_config.basic_auth.username.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vm_scrape_params.proxy_client_config.basic_auth.username.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.basic_auth.username.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.bearer_token
"SecretKeySelector selects a key of a Secret."
fn spec.vm_scrape_params.proxy_client_config.bearer_token.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vm_scrape_params.proxy_client_config.bearer_token.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.bearer_token.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.tls_config
"TLSConfig specifies TLSConfig configuration parameters."
fn spec.vm_scrape_params.proxy_client_config.tls_config.withCaFile
withCaFile(caFile)
"Path to the CA cert in the container to use for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.withCertFile
withCertFile(certFile)
"Path to the client cert file in the container for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.withInsecureSkipVerify
withInsecureSkipVerify(insecureSkipVerify)
"Disable target certificate validation."
fn spec.vm_scrape_params.proxy_client_config.tls_config.withKeyFile
withKeyFile(keyFile)
"Path to the client key file in the container for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.withServerName
withServerName(serverName)
"Used to verify the hostname for the targets."
obj spec.vm_scrape_params.proxy_client_config.tls_config.ca
"Stuct containing the CA cert to use for the targets."
obj spec.vm_scrape_params.proxy_client_config.tls_config.ca.configMap
"ConfigMap containing data to use for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.ca.configMap.withKey
withKey(key)
"The key to select."
fn spec.vm_scrape_params.proxy_client_config.tls_config.ca.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.tls_config.ca.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.tls_config.ca.secret
"Secret containing data to use for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.ca.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vm_scrape_params.proxy_client_config.tls_config.ca.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.tls_config.ca.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.tls_config.cert
"Struct containing the client cert file for the targets."
obj spec.vm_scrape_params.proxy_client_config.tls_config.cert.configMap
"ConfigMap containing data to use for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.cert.configMap.withKey
withKey(key)
"The key to select."
fn spec.vm_scrape_params.proxy_client_config.tls_config.cert.configMap.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.tls_config.cert.configMap.withOptional
withOptional(optional)
"Specify whether the ConfigMap or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.tls_config.cert.secret
"Secret containing data to use for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.cert.secret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vm_scrape_params.proxy_client_config.tls_config.cert.secret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.tls_config.cert.secret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"
obj spec.vm_scrape_params.proxy_client_config.tls_config.keySecret
"Secret containing the client key file for the targets."
fn spec.vm_scrape_params.proxy_client_config.tls_config.keySecret.withKey
withKey(key)
"The key of the secret to select from. Must be a valid secret key."
fn spec.vm_scrape_params.proxy_client_config.tls_config.keySecret.withName
withName(name)
"Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nTODO: Add other useful fields. apiVersion, kind, uid?\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Drop kubebuilder:default
when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896."
fn spec.vm_scrape_params.proxy_client_config.tls_config.keySecret.withOptional
withOptional(optional)
"Specify whether the Secret or its key must be defined"