An open API service indexing awesome lists of open source software.

https://github.com/alexsjones/prc

Prometheus recording rule to PrometheusRule converter
https://github.com/alexsjones/prc

crd prometheus prometheusrule recording-rule

Last synced: 3 months ago
JSON representation

Prometheus recording rule to PrometheusRule converter

Awesome Lists containing this project

README

          

# prc

[![Maintainability](https://api.codeclimate.com/v1/badges/bd292a076938a298d370/maintainability)](https://codeclimate.com/github/AlexsJones/prc/maintainability)

**Prometheus Rule Converter**

This program will convert recording rules into `PrometheusRule` type custom resource definitions

`go get github.com/AlexsJones/prc`

![](resources/prc.gif)

Example usage would be:

Converting an explicit recording rule
```
prc convert --from-file=examples/kube-recording-rules.yaml -r k8sPromRules
```

Converting a directory of recording rules
```
prc convert --from-files examples/rules -o examples/crd
```