Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmwylie19/bb-prometheus
https://github.com/cmwylie19/bb-prometheus
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmwylie19/bb-prometheus
- Owner: cmwylie19
- Created: 2023-08-10T15:02:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-15T18:17:53.000Z (over 1 year ago)
- Last Synced: 2024-04-22T00:21:07.944Z (8 months ago)
- Language: TypeScript
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Big Bang Prometheus
_This capability creates a ServiceMonitor and PrometheusRule for your app by adding [four labels](https://github.com/cmwylie19/bb-prometheus/blob/5f8ff9c2055d669b793340e575323140f67f7ee5/README.md?plain=1#L100) to a service. The `scheme=https` is meant for Big Bang._
1. Container to watch for the PromRule
2. Prometheus scrape label
3. Port that emits metrics
4. scheme=https/http (optional)Example:
```yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: blue
version: v1
scrape-port: http # Capability label
prometheus: scrape # Capability label
container: blue # Capability label
scheme: http # Capability label, can be https
name: blue
namespace: blue
```_Run K3d for this demo!_
- [Prometheus Dependency](#prometheus-dependency)
- [Run Pepr](#run-pepr)
- [Deploy App](#deploy-app)
- [View Results](#view-results)## Prometheus Dependency
Install Prometheus Bundle for testing
```bash
kubectl create -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/main/bundle.yaml
```Deploy Prometheus Instance with required perms
```bash
kubectl create -f -<