FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

Add product version to the Prometheus Metrics endpoing #2779

Closed robotdan closed 3 weeks ago

robotdan commented 3 weeks ago

Add product version to the Prometheus Metrics endpoing

Problem

It may be useful to have the product version in the Prometheus output. We currently do return in the Status API response which in general has the same content.

Solution

Add the product version to the prometheus response.

Example response:

# HELP fusionauth_version The FusionAuth product version.
# TYPE fusionauth_version untyped
fusionauth_version 1.0.0

Alternatives/workarounds

Call the Status or Version API

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

robotdan commented 3 weeks ago

Internal:

robotdan commented 3 weeks ago

Decided not to make this change. The existing locations to retrieve the version are reasonable, and this didn't seem to be the best way to add it to the Prometheus exporter since all values are really intended to be floats.