Class MetricsOptions
Specifies the options for configuring the cluster integrated Prometheus metrics stack: https://prometheus.io/
Namespace: Neon.Kube.ClusterDef
Assembly: Neon.Kube.dll
Syntax
public class MetricsOptions
Properties
Storage
Indicates where Prometheus metrics should be stored. This defaults to Ephemeral.
Declaration
[JsonProperty(PropertyName = "Storage", Required = Required.Default)]
[YamlMember(Alias = "storage", ApplyNamingConventions = false)]
public MetricsStorageOptions Storage { get; set; }
Property Value
Type | Description |
---|---|
MetricsStorageOptions |
Methods
Validate(ClusterDefinition)
Validates the options and also ensures that all null
properties are
initialized to their default values.
Declaration
public void Validate(ClusterDefinition clusterDefinition)
Parameters
Type | Name | Description |
---|---|---|
ClusterDefinition | clusterDefinition | The cluster definition. |
Exceptions
Type | Condition |
---|---|
ClusterDefinitionException | Thrown if the definition is not valid. |