rc #43
1
.env
1
.env
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue