pwillie / prometheus-es-adapter

Prometheus remote storage adapter for Elasticsearch
Apache License 2.0
60 stars 31 forks source link

bug: the first es index is "prom-metrics" but the code is prom-metrics+"-*" #20

Open yjbdsky opened 5 years ago

yjbdsky commented 5 years ago

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) }

pwillie commented 5 years ago

Hi @yjbdsky

Thanks for the report. Will look into this and get back to you.