Share
## https://sploitus.com/exploit?id=784A9A0E-E9CF-5942-B42E-DE7971F2E90E
# VMAlert Operator

**โš ๏ธ Proof of Concept**

Bridge Grafana Alerting UI with VictoriaMetrics VMAlert execution.

## Why?

- **Problem**: Grafana Alerting has scaling/SPOF issues, but devs love the UI
- **Solution**: Define alerts in Grafana UI, execute with VMAlert performance
- **How**: Operator syncs alerts from Grafana API โ†’ creates VMRule/VMAlert resources

## Getting Started

### Prerequisites
- go version v1.24.0+
- docker version 17.03+.
- kubectl version v1.11.3+.
- Access to a Kubernetes v1.11.3+ cluster.

### To Deploy on the cluster

```sh
make install
make run
```

```sh
kubectl apply -k config/samples/
```

For the fake python, and modify `webapp_v1_vmalertoperator.yaml`

```
./test-alerts-server.py
```

Check changes
```
kubectl get vmalert,vmrule
```
or logs if you have installed vmoperator
```
helm install vm-operator vm/victoria-metrics-operator -n vm-operator --set createCRDs=true
kubectl logs -l app.kubernetes.io/name=vmalert
```

## Cleanup

```bash
# Delete resources
kubectl delete -f config/samples/webapp_v1_vmalertoperator.yaml

# Uninstall CRDs
make uninstall
```


Copyright 2025.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.