Table of Contents

Class ResourcesSettings

Namespace
Virtufin.Api.Resources
Assembly
Virtufin.Api.dll

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

string

DefaultNfsExportDepth

medusa's exports are /exports/<pool>, one per ZFS pool.

public const int DefaultNfsExportDepth = 2

Field Value

int

DefaultQueryTimeoutSeconds

public const int DefaultQueryTimeoutSeconds = 10

Field Value

int

DefaultRateWindow

Long enough to span several scrapes at Prometheus' usual 1 min interval.

public const string DefaultRateWindow = "5m"

Field Value

string

DefaultVolumeUsedMetric

public const string DefaultVolumeUsedMetric = "node_disk_usage_bytes"

Field Value

string

Properties

Backends

public List<ResourcesBackend> Backends { get; set; }

Property Value

List<ResourcesBackend>

GrowthWindow

The window a volume's growth per day is measured over, a Prometheus duration.

public string GrowthWindow { get; set; }

Property Value

string

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

int

PrometheusUrl

The Prometheus base URL, e.g. http://prometheus-server.monitoring.svc.

public string PrometheusUrl { get; set; }

Property Value

string

QueryTimeoutSeconds

How long one call may wait for Prometheus.

public int QueryTimeoutSeconds { get; set; }

Property Value

int

RateWindow

The window CPU use is averaged over, a Prometheus duration.

public string RateWindow { get; set; }

Property Value

string

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

string

Methods

Problems()

The problems that make the file unusable; empty when it is fine.

public IReadOnlyList<string> Problems()

Returns

IReadOnlyList<string>