Class V1ServiceMonitorSpec
ServiceMonitorSpec contains specification parameters for a ServiceMonitor.
Namespace: Neon.Kube.Resources.Prometheus
Assembly: Neon.Kube.Resources.dll
Syntax
public class V1ServiceMonitorSpec
Constructors
V1ServiceMonitorSpec()
Constructor.
Declaration
public V1ServiceMonitorSpec()
Properties
Endpoints
A list of Endpoint allowed as part of this ServiceMonitor.
Declaration
public List<Endpoint> Endpoints { get; set; }
Property Value
Type | Description |
---|---|
List<Endpoint> |
JobLabel
Chooses the label of the Kubernetes Endpoints. Its value will be used for the job-label's value of the created metrics. Default fallback value: the name of the respective Kubernetes Endpoint.
Declaration
public string JobLabel { get; set; }
Property Value
Type | Description |
---|---|
string |
LabelLimit
Per-scrape limit on number of labels that will be accepted for a sample.
note
Only valid in Prometheus versions 2.27.0 and newer.
Declaration
public int? LabelLimit { get; set; }
Property Value
Type | Description |
---|---|
int? |
LabelNameLengthLimit
Per-scrape limit on length of labels name that will be accepted for a sample.
note
Only valid in Prometheus versions 2.27.0 and newer.
Declaration
public int? LabelNameLengthLimit { get; set; }
Property Value
Type | Description |
---|---|
int? |
LabelValueLengthLimit
Per-scrape limit on length of labels value that will be accepted for a sample.
note
Only valid in Prometheus versions 2.27.0 and newer.
Declaration
public int? LabelValueLengthLimit { get; set; }
Property Value
Type | Description |
---|---|
int? |
NamespaceSelector
NamespaceSelector to select which namespaces the Kubernetes Endpoints objects are discovered from.
Declaration
public NamespaceSelector NamespaceSelector { get; set; }
Property Value
Type | Description |
---|---|
NamespaceSelector |
PodTargetLabels
PodTargetLabels transfers labels on the Kubernetes Pod onto the created metrics.
Declaration
public List<string> PodTargetLabels { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
SampleLimit
SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.
Declaration
public int? SampleLimit { get; set; }
Property Value
Type | Description |
---|---|
int? |
Selector
V1LabelSelector to select Endpoints objects.
Declaration
public V1LabelSelector Selector { get; set; }
Property Value
Type | Description |
---|---|
V1LabelSelector |
TargetLabels
TargetLabels transfers labels from the Kubernetes Service onto the created metrics.
Declaration
public List<string> TargetLabels { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
TargetLimit
TargetLimit defines a limit on the number of scraped targets that will be accepted.
Declaration
public int? TargetLimit { get; set; }
Property Value
Type | Description |
---|---|
int? |