Table of Contents

Namespace Virtufin.Api.Resources

Classes

PrometheusClient

Instant queries against Prometheus' HTTP API (/api/v1/query), read with JsonDocument so the AOT build needs no serializer for them.

PrometheusQueryException

Prometheus answered with an error (a bad query: a configuration problem).

PrometheusSample

One sample of an instant query: its labels and value.

ResourcesBackend
ResourcesService

Resources.ListBackends (openspec api-gateway, Backend Resources): each configured backend's pods with their CPU, memory, requests and limits, and its data size when a query for it is configured, and the volumes its pods mount (Virtufin.Api.Resources.BackendStorage). One query per figure covers every backend; pods and volumes are assigned to backends here by namespace and pattern.

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.

ResourcesSettingsLoader

Reads resources.json; a missing file means resources are not configured.

ResourcesSource

The settings and the Prometheus client, both null when resources.json is absent.