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
- Host: GitHub
- URL: https://github.com/alexsjones/prc
- Owner: AlexsJones
- License: apache-2.0
- Created: 2020-10-24T09:31:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T09:35:04.000Z (almost 5 years ago)
- Last Synced: 2025-04-08T15:26:21.613Z (6 months ago)
- Topics: crd, prometheus, prometheusrule, recording-rule
- Language: Go
- Homepage:
- Size: 3.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prc
[](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`

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
```