Skip to content

artyomovs/prometheus-wizard-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-wizard-exporter

Customized python Prometheus exporter (docker container)

Prometheus+grafana are a couple of guys, that could help with everything (except for the weather, money issues, college, etc. ). Ok, they could help with everything in the world of monitoring.

Fortunately, there are a bunch of handful prometheus-exporters, that could expose metrics of different systems (Linux, Windows, web servers, elasticsearch, etc.).

One day I got a couple of almost similar tasks - 1. get website Sign In time. 2. get elasticsearch CCR request response time. Of course, I could solve these tasks with a blackbox-exporter, but there are some nuances here. For example

  1. The HTTP request could be with more than one step. i.e. POST exmaple.com/task (get task_id) GET example.com/task_id (get result)
  2. I needed a frontend check of my website, so I needed something like selenium or puppeteer

I decided to create my own prometheus-wizard-exporter. A python core (run as docker container) that executes scripts with schedule from the "libs" directory and just expose these scripts metrics. Now, if I want to add metrics to measure - I follow this scenario:

  1. Create a python script in the libs directory.
  2. Add the name of script and function to YAML input
  3. Rebuild docker image.

About

Customized python Prometheus exporter (docker container)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published