Bug in SAM Prometheus metrics endpoint
The current version of SAM creates Prometheus metric endpoints which appear to be handled correctly by the current prometheus scraper, however the metrics do not confirm to the current prometheus standard. The standard states:
- Prometheus' text-based format is line oriented. Lines are separated by a line feed character (
\n
). The last line must end with a line feed character. Empty lines are ignored.
Link is here: Prometheus format
In the current output on the
<hostname>:8080/api/monitor/metrics
endpoint the last metric does not contain a newline causing parsers to fail. Adding a newline to this should correct the issues.
Product version: IRIS 2020.1