ST-Apps/sonarqube-prometheus-exporter

make language metrics specific

Opened this issue · 1 comments

I made this question ( issue ) some days before and closed it later, but now I know I have to ask you if the language metrics could be changed to the specific language indicator.

My question is:
Is it possible to implement the metric statisticsnclocbylanguage?_ncloc ( the metrics have a number, starting with 0 | 1 | 2 | ...... )
to replace the 'number' with the used language.
example: statisticsnclocbylanguage_java_ncloc

We have 2 instances of SonarQube, and the output order of the nclocByLanguage metrics are not the same within the request api/system/info.
So I assume that the metric statisticsnclocbylanguage0_ncloc wil not always be the same language on different instances.

Thanks for the suggestion.
I need to investigate this because, as for now, I'm only exporting the very same metrics that I can find in SonarQube's APIs (names included).