rc #43

Merged
deployer3000 merged 3 commits from rc into main 2026-01-19 14:34:03 +03:00
2 changed files with 2 additions and 1 deletions

1
.env
View File

@ -1,5 +1,6 @@
# Прометеус # Прометеус
PROMETHEUS_API=http://192.168.2.34:9090/api/v1 PROMETHEUS_API=http://192.168.2.34:9090/api/v1
PROMETHEUS_INSTANCE=192.168.2.34:9050
FRONTEND_URL=http://localhost:5173 FRONTEND_URL=http://localhost:5173

View File

@ -168,7 +168,7 @@ export class PrometheusService {
): Promise<PrometheusMetric[]> { ): Promise<PrometheusMetric[]> {
const query = this.queryService.buildFilteredQuery(metric, { const query = this.queryService.buildFilteredQuery(metric, {
...filters, ...filters,
instance: '192.168.2.34:9050' instance: process.env.PROMETHEUS_INSTANCE || ""
}); });
const optimalStep = this.queryService.calculateOptimalStep(start, end); const optimalStep = this.queryService.calculateOptimalStep(start, end);