https://github.com/byndyusoft/devops-cue-prometheus-module
Module for create slo and alerts. Usage sloth and cue
https://github.com/byndyusoft/devops-cue-prometheus-module
cue cuelang deckhouse prometheus sloth
Last synced: 4 months ago
JSON representation
Module for create slo and alerts. Usage sloth and cue
- Host: GitHub
- URL: https://github.com/byndyusoft/devops-cue-prometheus-module
- Owner: Byndyusoft
- Created: 2023-04-25T08:02:05.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T19:18:10.000Z (about 3 years ago)
- Last Synced: 2025-05-30T14:22:50.705Z (about 1 year ago)
- Topics: cue, cuelang, deckhouse, prometheus, sloth
- Language: CUE
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Module for create customprometheusrule with cue
## Example
See ./values/teamA
## Usage
Clone repo
Write rules with cuelang and sloth
For sloth specs
```bash
cue cmd -t env=${ENV} sloth
```
For alers(in proggress)
```bash
cue cmd -t env=${ENV} alerts
```
Apply manifest on cluster
```bash
kubectl apply -f ./_gen/
```
## TODO
* Generate alerts
* Pretty print all rules
* Full guide