Compare commits
4 Commits
695644e505
...
be67f7dc07
| Author | SHA1 | Date |
|---|---|---|
|
|
be67f7dc07 | |
|
|
e264d59338 | |
|
|
2beb4e0ee9 | |
|
|
054b25484c |
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