Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.58 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.58 KB

Write my own prometheus_exporter

The problem.

My applications dont expose metrics in "OpenMetrics" format, and I need to extract json data that is exposed in my them. This applications don't send any information outside, only expose json output in this format

  • app : port / metrics
  • service01:80/metrics

The idea/solution.

Write a prometheus_custom_expoter: CustomExporter

Generate a custom prometheus exporter to scrape all applications, extract json outputs, parse it, and finally transform all json in a OpenMetrics format to will be consumed by prometheus server and show it in grafana.


General dashboard status


Architecture


My app exposing their json outputs


My Prometheus custom exporter consuming all service metrics :)


PromQL query to get all services


PromQL query to get sum of status