最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to set micrometer prometheus response content - Stack Overflow

programmeradmin2浏览0评论

I use latest quarkus-micrometer-registry-prometheus library 1.14.4 expose the default metrics. But our company service collect metrics by text/plain context. Collector send request without any header, so they don't put text/plain at request header. The Prometheus register return default application/openmetrics-text, which add # EOF line at end of stream, which cause collector not recognize to throw exception.

I checked the documents online but did not find how to change library default scrape() context to text/plain.

Any idea help. Thanks

发布评论

评论列表(0)

  1. 暂无评论