Compare commits

..

No commits in common. "be67f7dc07902e2fcc67aee74b55712a65f95e65" and "695644e50537242570741d121b39bc358f28881a" have entirely different histories.

2 changed files with 1 additions and 2 deletions

1
.env
View File

@ -1,6 +1,5 @@
# Прометеус # Прометеус
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: process.env.PROMETHEUS_INSTANCE || "" instance: '192.168.2.34:9050'
}); });
const optimalStep = this.queryService.calculateOptimalStep(start, end); const optimalStep = this.queryService.calculateOptimalStep(start, end);