Class ResourcesSettings
resources.json (openspec api-gateway, Backend Resources): where the metrics come from and which pods make up each backend of the context. Rendered by helm.
public sealed class ResourcesSettings
- Inheritance
-
ResourcesSettings
- Inherited Members
Fields
DefaultGrowthWindow
A day: growth per day is then the day's own change, not an extrapolation of minutes.
public const string DefaultGrowthWindow = "24h"
Field Value
DefaultNfsExportDepth
medusa's exports are /exports/<pool>, one per ZFS pool.
public const int DefaultNfsExportDepth = 2
Field Value
DefaultQueryTimeoutSeconds
public const int DefaultQueryTimeoutSeconds = 10
Field Value
DefaultRateWindow
Long enough to span several scrapes at Prometheus' usual 1 min interval.
public const string DefaultRateWindow = "5m"
Field Value
DefaultVolumeUsedMetric
public const string DefaultVolumeUsedMetric = "node_disk_usage_bytes"
Field Value
Properties
Backends
public List<ResourcesBackend> Backends { get; set; }
Property Value
GrowthWindow
The window a volume's growth per day is measured over, a Prometheus duration.
public string GrowthWindow { get; set; }
Property Value
NfsExportDepth
How many leading segments of an NFS volume's path name the export it lives on, its disk:
with 2, /exports/medusa/kubernetes-volumes/redis/data is on /exports/medusa.
public int NfsExportDepth { get; set; }
Property Value
PrometheusUrl
The Prometheus base URL, e.g. http://prometheus-server.monitoring.svc.
public string PrometheusUrl { get; set; }
Property Value
QueryTimeoutSeconds
How long one call may wait for Prometheus.
public int QueryTimeoutSeconds { get; set; }
Property Value
RateWindow
The window CPU use is averaged over, a Prometheus duration.
public string RateWindow { get; set; }
Property Value
VolumeUsedMetric
The disk-usage collector's metric of a directory's size in bytes, labeled with the directory's
path (openspec api-gateway, Measured Volume Size). The default is the upstream
disk_usage_exporter's; a context without the collector gets every volume as not measured.
public string VolumeUsedMetric { get; set; }
Property Value
Methods
Problems()
The problems that make the file unusable; empty when it is fine.
public IReadOnlyList<string> Problems()