Class Endpoint
Endpoint defines a scrapeable endpoint serving Prometheus metrics.
Namespace: Neon.Kube.Resources.Prometheus
Assembly: Neon.Kube.Resources.dll
Syntax
public class Endpoint
Constructors
Endpoint()
Constructor.
Declaration
public Endpoint()
Properties
HonorLabels
Whether to honor labels from the source.
Declaration
public bool? HonorLabels { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Interval
Interval at which metrics should be scraped If not specified Prometheus' global scrape interval is used.
Declaration
public string Interval { get; set; }
Property Value
Type | Description |
---|---|
string |
Params
Optional HTTP URL parameters
Declaration
public string Params { get; set; }
Property Value
Type | Description |
---|---|
string |
Path
HTTP path to scrape for metrics.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
Port
Name of the service port this endpoint refers to. Mutually exclusive with targetPort.
Declaration
public string Port { get; set; }
Property Value
Type | Description |
---|---|
string |
Scheme
HTTP scheme to use for scraping.
Declaration
public string Scheme { get; set; }
Property Value
Type | Description |
---|---|
string |
ScrapeTimeout
Timeout after which the scrape is ended If not specified, the Prometheus global scrape timeout is used unless it is less than Interval in which the latter is used.
Declaration
public string ScrapeTimeout { get; set; }
Property Value
Type | Description |
---|---|
string |
TargetPort
Name or number of the target port of the Pod behind the Service, the port must be specified with container port property. Mutually exclusive with port.
Declaration
public int TargetPort { get; set; }
Property Value
Type | Description |
---|---|
int |