Compare commits
2 Commits
c3a154bfe1
...
5f1708424f
| Author | SHA1 | Date |
|---|---|---|
|
|
5f1708424f | |
|
|
042cc03948 |
|
|
@ -124,7 +124,10 @@ export class PrometheusService {
|
|||
}
|
||||
|
||||
async fetchMetricsRange(metric: string, start: number, end: number, step: number, filters: Record<string, string> = {}): Promise<PrometheusMetric[]> {
|
||||
const query = this.buildFilteredQuery(metric, filters);
|
||||
const query = this.buildFilteredQuery(metric, {
|
||||
...filters,
|
||||
instance: '192.168.2.34:9050' // Явно фильтруем по нужному instance
|
||||
});
|
||||
try {
|
||||
const response = await lastValueFrom(
|
||||
this.httpService.get(`${this.prometheusUrl}/query_range`, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue