Compare commits
11 Commits
61292165d1
...
2beb4e0ee9
| Author | SHA1 | Date |
|---|---|---|
|
|
2beb4e0ee9 | |
|
|
054b25484c | |
|
|
695644e505 | |
|
|
d060862e47 | |
|
|
05b7609914 | |
|
|
2067bb9c55 | |
|
|
8672ca7112 | |
|
|
16ce1da9a2 | |
|
|
066a1e4eba | |
|
|
054fc46a01 | |
|
|
a5a98ef668 |
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