Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyp8s examples

Here you can find a few simple usage examples.

Prepare environment:

  1. Make sure you have Python 3.6+ installed
  2. Install pyp8s python3 -m pip install pyp8s
  3. Run an example python3 examples/pyp8s_ticker.py

Minimal

An example of how simple it can be. It wouldn't be up to Prometheus standards, but it's going to work.

pyp8s_minimal.py

Ticker

A tiny application that counts seconds from the startup.

pyp8s_ticker.py

Eternity

In this example we only start the metrics server. Nothing else changes.

pyp8s_eternity.py

Workarounds

A few workarounds on how to make python accept things that are legal for Prometheus metrics, but cause syntax error in Python.

pyp8s_workarounds.py

About

pyp8s usage examples

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors