NAME
IO::K8s::PrometheusOperator::V1::ScrapeClass - ScrapeClass
VERSION
version 1.108
attachMetadata
attachMetadata defines additional metadata to the discovered targets. When the scrape object defines its own configuration, it takes precedence over the scrape class configuration.
authorization
authorization section for the ScrapeClass. It will only apply if the scrape resource doesn't specify any Authorization.
default
default defines that the scrape applies to all scrape objects that don't configure an explicit scrape class name.
Only one scrape class can be set as the default.
fallbackScrapeProtocol
fallbackScrapeProtocol defines the protocol to use if a scrape returns blank, unparseable, or otherwise invalid Content-Type. It will only apply if the scrape resource doesn't specify any FallbackScrapeProtocol
It requires Prometheus >= v3.0.0.
metricRelabelings
metricRelabelings defines the relabeling rules to apply to all samples before ingestion.
The Operator adds the scrape class metric relabelings defined here. Then the Operator adds the target-specific metric relabelings defined in ServiceMonitors, PodMonitors, Probes and ScrapeConfigs. Then the Operator adds namespace enforcement relabeling rule, specified in '.spec.enforcedNamespaceLabel'.
More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
name
name of the scrape class.
relabelings
relabelings defines the relabeling rules to apply to all scrape targets.
The Operator automatically adds relabelings for a few standard Kubernetes fields like `__meta_kubernetes_namespace` and `__meta_kubernetes_service_name`. Then the Operator adds the scrape class relabelings defined here. Then the Operator adds the target-specific relabelings defined in the scrape object.
More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
tlsConfig
tlsConfig defines the TLS settings to use for the scrape. When the scrape objects define their own CA, certificate and/or key, they take precedence over the corresponding scrape class fields.
For now only the `caFile`, `certFile` and `keyFile` fields are supported.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/pplu/io-k8s-p5/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHORS
Torsten Raudssus <getty@cpan.org>
Jose Luis Martinez Torres <jlmartin@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2018-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004