Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 596 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 596 Bytes

promhacks

Feel free to use this as a source of inspiration or as a starting point but do not use this in production directly.

  • rules-conv.py: ad-hoc script to convert Prometheus 1.x rules to the Prometheus 2.x YAML format. The automatic conversion with promtool has the problem that it removes comments and formatting. This script makes a lot of assumptions of how you have formatted your rules. It does not parse the Prometheus 1.x rules format. It essentially just kicks stuff around, and if your rules follow all the assumptions it makes, you'll get valid YAML output.