mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-09 05:15:58 +10:00
31 lines
924 B
Markdown
31 lines
924 B
Markdown
# Badger
|
|
|
|
Create badges from your prometheus metrics
|
|
|
|

|
|

|
|

|
|
[](https://badges.toozhao.com/svg/aria-ui-dockerhub)
|
|
|
|
[](https://microbadger.com/images/wahyd4/aria2-ui "Get your own image badge on microbadger.com")
|
|
|
|
# How to run
|
|
|
|
```bash
|
|
go run main.go
|
|
```
|
|
|
|
# Build with docker
|
|
|
|
```bash
|
|
docker build . --tag docker.pkg.github.com/wahyd4/badger/badger
|
|
```
|
|
|
|
|
|
# Role binding
|
|
|
|
```bash
|
|
kubectl create rolebinding apps-editor-binding --clusterrole=edit --serviceaccount=apps:cd-robot --namespace=apps
|
|
kubectl create rolebinding prometheus-ops --clusterrole=prometheus-prometheus-oper-operator --serviceaccount=apps:cd-robot --namespace=apps
|
|
```
|