ScrapeConfig defines a namespaced Prometheus scrape_config to be aggregated across multiple namespaces into the Prometheus configuration.
Unchanged since Prometheus Operator v0.65.0
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
ScrapeConfigSpec is a specification of the desired configuration for a scrape configuration.
FileSDConfigs defines a list of file service discovery configurations.
List of files to be used for file discovery. Recommendation: use absolute paths. While relative paths work, the prometheus-operator project makes no guarantees about the working directory where the configuration file is stored. Files must be mounted using Prometheus.ConfigMaps or Prometheus.Secrets.
RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.
HonorLabels chooses the metric's labels on collisions with target labels.
HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data.
HTTPSDConfigs defines a list of HTTP service discovery configurations.
RefreshInterval configures the refresh interval at which Prometheus will re-query the endpoint to update the target list.
URL from which the targets are fetched.
MetricsPath HTTP path to scrape for metrics. If empty, Prometheus uses the default value (e.g. /metrics).
RelabelConfigs defines how to rewrite the target's labels before scraping. Prometheus Operator automatically adds relabelings for a few standard Kubernetes fields. The original scrape job's name is available via the `__tmp_prometheus_job_name` label. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
Action to perform based on regex matching. Default is 'replace'. uppercase and lowercase actions require Prometheus >= 2.36.
Modulus to take of the hash of the source label values.
Regular expression against which the extracted value is matched. Default is '(.*)'
Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'
Separator placed between concatenated source label values. default is ';'.
The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.
Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.
StaticConfigs defines a list of static targets with a common label set.
Labels assigned to all metrics scraped from the targets.
List of targets for this static configuration.
Source: bundle.yaml
Changes to ScrapeConfig (monitoring.coreos.com/v1alpha1) in each Prometheus Operator version, compared to the version before it.
ScrapeConfig was first seen on this version of Prometheus Operator
Released · View ScrapeConfig in v0.65.0
No examples of ScrapeConfig yet. Contribute one on GitHub.