Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cmwylie19/bb-prometheus


https://github.com/cmwylie19/bb-prometheus

Last synced: about 1 month ago
JSON representation

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