the first es index is "prom-metrics" but the code is Index(svc.config.Alias+"-").
so can not get the data in index "prom-metrics"
code: prometheus-es-adapter/pkg/elasticsearch/read.go 74 line
return svc.client.Search().
Index(svc.config.Alias+"-").
Type(sampleType).
Query(query).
Size(svc.config.MaxDocs).
Sort("timestamp", true)
}
the first es index is "prom-metrics" but the code is Index(svc.config.Alias+"-"). so can not get the data in index "prom-metrics" code: prometheus-es-adapter/pkg/elasticsearch/read.go 74 line return svc.client.Search(). Index(svc.config.Alias+"-"). Type(sampleType). Query(query). Size(svc.config.MaxDocs). Sort("timestamp", true) }