swagger #42

Merged
VladislavD merged 10 commits from swagger into rc 2026-01-19 14:33:12 +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_INSTANCE=192.168.2.34:9050
FRONTEND_URL=http://localhost:5173

View File

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