Skip to content

Instantly share code, notes, and snippets.

@danhanks
danhanks / dsc_exporter.py
Created January 14, 2022 14:46
Simple Prometheus exporter for DSC Data
"""
© Copyright 2022 Adobe. All rights reserved.
This is a Prometheus exporter which watches for JSON files produced by dsc.
As files are generated, they are parsed and the metrics/data therein are
added to the Prometheus metrics in the running exporter.
"""
#!/usr/bin/env python
from prometheus_client import start_http_server, Counter, Summary