Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 626 Bytes

File metadata and controls

17 lines (10 loc) · 626 Bytes

Prometheus Sample

This sample shows how to have SDK Prometheus metrics made available via HTTP.

To run, first see README.md for prerequisites. Then, run the following from the root directory to start the worker:

uv run prometheus/worker.py

This will start the worker and the metrics will be visible for this process at http://127.0.0.1:9000/metrics.

Then, in another terminal, run the following to execute a workflow:

uv run prometheus/starter.py

After executing the workflow, the process will stay open so the metrics if this separate process can be accessed at http://127.0.0.1:9001/metrics.