Skip to content

prometheus client encode code for c++ in linux, very simple demo

Notifications You must be signed in to change notification settings

tming/prometheus_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus_lib

prometheus clinet for c++, very simple demo

usage:

  1. make
  2. ./test_obj

it will output the Text format example of https://prometheus.io/docs/instrumenting/exposition_formats/

TODO:

  1. it dose not support Nan, +Inf, and -Inf
  2. it is not thread-safe, if you want use it in multi-thread env, you should change it to fit, such as notify the thead with pipe, or just with mutex lock
  3. it is not flexible, for example, it will be more flexible with json for labels

About

prometheus client encode code for c++ in linux, very simple demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published