{{ t('Prometheus metrics') }}
{{ t('Available metrics') }}
@for (metricSelected of selectedMetrics; track metricSelected) { }
{{ t('Brackets') }}
{{ t('Arithmetic binary operators') }}
{{ t('Aggregation operators') }}
{{ t('Query result:') }} @if (executeResult) { {{ executeResult }} } @if (!executeResult) { {{ t('no data') }} }
{{ t('Warning') }}
@if (ValidateService.threshold_type === PrometheusThresholdType.scalar) { } @if (ValidateService.threshold_type !== PrometheusThresholdType.scalar) { }
@if (ValidateService.threshold_type !== PrometheusThresholdType.scalar) { }
{{ t('Critical') }}
@if (ValidateService.threshold_type == PrometheusThresholdType.scalar) { } @if (ValidateService.threshold_type !== PrometheusThresholdType.scalar) { }
@if (ValidateService.threshold_type !== PrometheusThresholdType.scalar) { }
{{ t('Unit of the metric.') }}
{{ t('Examples:') }}
  • {{ t('"b" for bytes.') }}
  • {{ t('"KB" for kilobytes.') }}
  • {{ t('"s" for seconds.') }}
  • {{ t('"Mbps" or "Mbit/s"') }}
  • {{ t('"MB/s" for megabytes per second') }}
@if (createServicesArray.length > 0) {
{{ t('Services') }}
@for (service of createServicesArray; track service; let i = $index) { }
{{ t('Name') }} {{ t('PromQL Query') }} {{ t('Unit') }} {{ t('Warning') }} {{ t('Critical') }} {{ t('Remove') }}
{{ service.name }} {{ service.prometheus_alert_rule.promql }} {{ service.prometheus_alert_rule.unit }} {{ service.prometheus_alert_rule.warning_min }} {{ service.prometheus_alert_rule.warning_max }} {{ service.prometheus_alert_rule.critical_min }} {{ service.prometheus_alert_rule.critical_max }}
}
{{ t('Current values') }}
@for (metric of selectedMetrics; track metric) { @if (typeof ( metrics[metric] ) !== 'undefined') { @for (datum of metrics[metric].metricDetails.data.result; track datum) { } } }
{{ t('Element') }} {{ t('Value') }}
{{ datum.metric.__name__ }} {{ '{' }} @for (a of datum.metric | keyvalue; track a; let last = $last) { @if (a.key !== '__name__') { {{ a.key }}="{{ a.value }}"@if (!last) { , } } } {{ '}' }} {{ datum.value[1] }}