Compare commits
11 Commits
d060862e47
...
e264d59338
| Author | SHA1 | Date |
|---|---|---|
|
|
e264d59338 | |
|
|
2beb4e0ee9 | |
|
|
054b25484c | |
|
|
695644e505 | |
|
|
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_INSTANCE=192.168.2.34:9050
|
||||
|
||||
FRONTEND_URL=http://localhost:5173
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue