tliefheid / graphite-exporter

export graphite metrics to prometheus
MIT License
3 stars 4 forks source link

[BUG] metrics names are overridden each other. #19

Open hayk96 opened 3 years ago

hayk96 commented 3 years ago

Hi @TomL-dev 👋 I have a configuration file, where targets are defined the following structure which is described below:

targets:
  - name: metric_name_1
    graphite: graphite
    query: "<SOME QUERY>"

  - name: metric_name_2
    graphite: graphite
    query: "<SOME QUERY>" 

When the exporter runs it only exports the last metric, seems that the rest of the metric names are overridden by the last one.

e.g. I am expecting the following result: metric_name_1{<label_name>="<label_value>"} 1 metric_name_2{<label_name>="<label_value>"} 1

but getting the result like this: metric_name_2{<label_name>="<label_value>"} 2

Thanks for building this project.

tliefheid commented 3 years ago

Thnx for creating the issue. I'll take a look, in the coming weeks