PrometheusSpec

Struct PrometheusSpec 

Source
pub struct PrometheusSpec {
Show 89 fields pub additional_alert_manager_configs: Option<PrometheusAdditionalAlertManagerConfigs>, pub additional_alert_relabel_configs: Option<PrometheusAdditionalAlertRelabelConfigs>, pub additional_args: Option<Vec<PrometheusAdditionalArgs>>, pub additional_scrape_configs: Option<PrometheusAdditionalScrapeConfigs>, pub affinity: Option<PrometheusAffinity>, pub alerting: Option<PrometheusAlerting>, pub allow_overlapping_blocks: Option<bool>, pub apiserver_config: Option<PrometheusApiserverConfig>, pub arbitrary_fs_access_through_s_ms: Option<PrometheusArbitraryFsAccessThroughSMs>, pub base_image: Option<String>, pub config_maps: Option<Vec<String>>, pub containers: Option<Vec<PrometheusContainers>>, pub disable_compaction: Option<bool>, pub enable_admin_api: Option<bool>, pub enable_features: Option<Vec<String>>, pub enable_remote_write_receiver: Option<bool>, pub enforced_body_size_limit: Option<String>, pub enforced_label_limit: Option<i64>, pub enforced_label_name_length_limit: Option<i64>, pub enforced_label_value_length_limit: Option<i64>, pub enforced_namespace_label: Option<String>, pub enforced_sample_limit: Option<i64>, pub enforced_target_limit: Option<i64>, pub evaluation_interval: Option<String>, pub excluded_from_enforcement: Option<Vec<PrometheusExcludedFromEnforcement>>, pub exemplars: Option<PrometheusExemplars>, pub external_labels: Option<BTreeMap<String, String>>, pub external_url: Option<String>, pub host_aliases: Option<Vec<PrometheusHostAliases>>, pub host_network: Option<bool>, pub ignore_namespace_selectors: Option<bool>, pub image: Option<String>, pub image_pull_policy: Option<PrometheusImagePullPolicy>, pub image_pull_secrets: Option<Vec<PrometheusImagePullSecrets>>, pub init_containers: Option<Vec<PrometheusInitContainers>>, pub listen_local: Option<bool>, pub log_format: Option<PrometheusLogFormat>, pub log_level: Option<PrometheusLogLevel>, pub min_ready_seconds: Option<i32>, pub node_selector: Option<BTreeMap<String, String>>, pub override_honor_labels: Option<bool>, pub override_honor_timestamps: Option<bool>, pub paused: Option<bool>, pub pod_metadata: Option<PrometheusPodMetadata>, pub pod_monitor_namespace_selector: Option<LabelSelector>, pub pod_monitor_selector: Option<LabelSelector>, pub pod_target_labels: Option<Vec<String>>, pub port_name: Option<String>, pub priority_class_name: Option<String>, pub probe_namespace_selector: Option<LabelSelector>, pub probe_selector: Option<LabelSelector>, pub prometheus_external_label_name: Option<String>, pub prometheus_rules_excluded_from_enforce: Option<Vec<PrometheusPrometheusRulesExcludedFromEnforce>>, pub query: Option<PrometheusQuery>, pub query_log_file: Option<String>, pub remote_read: Option<Vec<PrometheusRemoteRead>>, pub remote_write: Option<Vec<PrometheusRemoteWrite>>, pub replica_external_label_name: Option<String>, pub replicas: Option<i32>, pub resources: Option<PrometheusResources>, pub retention: Option<String>, pub retention_size: Option<String>, pub route_prefix: Option<String>, pub rule_namespace_selector: Option<LabelSelector>, pub rule_selector: Option<LabelSelector>, pub rules: Option<PrometheusRules>, pub scrape_config_namespace_selector: Option<LabelSelector>, pub scrape_config_selector: Option<LabelSelector>, pub scrape_interval: Option<String>, pub scrape_timeout: Option<String>, pub secrets: Option<Vec<String>>, pub security_context: Option<PrometheusSecurityContext>, pub service_account_name: Option<String>, pub service_monitor_namespace_selector: Option<LabelSelector>, pub service_monitor_selector: Option<LabelSelector>, pub sha: Option<String>, pub shards: Option<i32>, pub storage: Option<PrometheusStorage>, pub tag: Option<String>, pub thanos: Option<PrometheusThanos>, pub tolerations: Option<Vec<PrometheusTolerations>>, pub topology_spread_constraints: Option<Vec<PrometheusTopologySpreadConstraints>>, pub tracing_config: Option<PrometheusTracingConfig>, pub tsdb: Option<PrometheusTsdb>, pub version: Option<String>, pub volume_mounts: Option<Vec<PrometheusVolumeMounts>>, pub volumes: Option<Vec<PrometheusVolumes>>, pub wal_compression: Option<bool>, pub web: Option<PrometheusWeb>,
}

Fields§

§additional_alert_manager_configs: Option<PrometheusAdditionalAlertManagerConfigs>§additional_alert_relabel_configs: Option<PrometheusAdditionalAlertRelabelConfigs>§additional_args: Option<Vec<PrometheusAdditionalArgs>>§additional_scrape_configs: Option<PrometheusAdditionalScrapeConfigs>§affinity: Option<PrometheusAffinity>§alerting: Option<PrometheusAlerting>§allow_overlapping_blocks: Option<bool>§apiserver_config: Option<PrometheusApiserverConfig>§arbitrary_fs_access_through_s_ms: Option<PrometheusArbitraryFsAccessThroughSMs>§base_image: Option<String>§config_maps: Option<Vec<String>>§containers: Option<Vec<PrometheusContainers>>§disable_compaction: Option<bool>§enable_admin_api: Option<bool>§enable_features: Option<Vec<String>>§enable_remote_write_receiver: Option<bool>§enforced_body_size_limit: Option<String>§enforced_label_limit: Option<i64>§enforced_label_name_length_limit: Option<i64>§enforced_label_value_length_limit: Option<i64>§enforced_namespace_label: Option<String>§enforced_sample_limit: Option<i64>§enforced_target_limit: Option<i64>§evaluation_interval: Option<String>§excluded_from_enforcement: Option<Vec<PrometheusExcludedFromEnforcement>>§exemplars: Option<PrometheusExemplars>§external_labels: Option<BTreeMap<String, String>>§external_url: Option<String>§host_aliases: Option<Vec<PrometheusHostAliases>>§host_network: Option<bool>§ignore_namespace_selectors: Option<bool>§image: Option<String>§image_pull_policy: Option<PrometheusImagePullPolicy>§image_pull_secrets: Option<Vec<PrometheusImagePullSecrets>>§init_containers: Option<Vec<PrometheusInitContainers>>§listen_local: Option<bool>§log_format: Option<PrometheusLogFormat>§log_level: Option<PrometheusLogLevel>§min_ready_seconds: Option<i32>§node_selector: Option<BTreeMap<String, String>>§override_honor_labels: Option<bool>§override_honor_timestamps: Option<bool>§paused: Option<bool>§pod_metadata: Option<PrometheusPodMetadata>§pod_monitor_namespace_selector: Option<LabelSelector>§pod_monitor_selector: Option<LabelSelector>§pod_target_labels: Option<Vec<String>>§port_name: Option<String>§priority_class_name: Option<String>§probe_namespace_selector: Option<LabelSelector>§probe_selector: Option<LabelSelector>§prometheus_external_label_name: Option<String>§prometheus_rules_excluded_from_enforce: Option<Vec<PrometheusPrometheusRulesExcludedFromEnforce>>§query: Option<PrometheusQuery>§query_log_file: Option<String>§remote_read: Option<Vec<PrometheusRemoteRead>>§remote_write: Option<Vec<PrometheusRemoteWrite>>§replica_external_label_name: Option<String>§replicas: Option<i32>§resources: Option<PrometheusResources>§retention: Option<String>§retention_size: Option<String>§route_prefix: Option<String>§rule_namespace_selector: Option<LabelSelector>§rule_selector: Option<LabelSelector>§rules: Option<PrometheusRules>§scrape_config_namespace_selector: Option<LabelSelector>§scrape_config_selector: Option<LabelSelector>§scrape_interval: Option<String>§scrape_timeout: Option<String>§secrets: Option<Vec<String>>§security_context: Option<PrometheusSecurityContext>§service_account_name: Option<String>§service_monitor_namespace_selector: Option<LabelSelector>§service_monitor_selector: Option<LabelSelector>§sha: Option<String>§shards: Option<i32>§storage: Option<PrometheusStorage>§tag: Option<String>§thanos: Option<PrometheusThanos>§tolerations: Option<Vec<PrometheusTolerations>>§topology_spread_constraints: Option<Vec<PrometheusTopologySpreadConstraints>>§tracing_config: Option<PrometheusTracingConfig>§tsdb: Option<PrometheusTsdb>§version: Option<String>§volume_mounts: Option<Vec<PrometheusVolumeMounts>>§volumes: Option<Vec<PrometheusVolumes>>§wal_compression: Option<bool>§web: Option<PrometheusWeb>

Trait Implementations§

Source§

impl Clone for PrometheusSpec

Source§

fn clone(&self) -> PrometheusSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PrometheusSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PrometheusSpec

Source§

fn default() -> PrometheusSpec

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PrometheusSpec

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PrometheusSpec

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,