Skip to content

Instantly share code, notes, and snippets.

View shaneseery's full-sized avatar

Shane Seery shaneseery

View GitHub Profile
@shaneseery
shaneseery / prometheus_script.py
Created April 22, 2026 10:08
Script for simulating endpoints/traffic to query using prometheus
# -----------------------------------------------------------------------------
# SECTION 1 — Imports
# Standard library: os (env vars), time and random (simulation).
# opentelemetry: the OTel SDK — packages and ships our metrics to Grafana Cloud.
# -----------------------------------------------------------------------------
import os
import time
import random