Skip to content

Commit

Permalink
Merge pull request #2 from rh-mobb/charts-repo
Browse files Browse the repository at this point in the history
update rosa federated prom chart
  • Loading branch information
paulczar authored Oct 26, 2021
2 parents 28940c1 + b5925c4 commit 181e9d0
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 13 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,21 @@

See [/charts](charts) for a list of charts.

Further Instructions coming
1. Add This Repository to your Helm

```bash
helm repo add mobb https://rh-mobb.github.io/helm-charts/
```

1. Update your Repository

```bash
helm repo update
```

1. Install a Chart

```bash
curl -sSL https://raw.githubusercontent.com/rh-mobb/helm-charts/main/charts/rosa-federated-prometheus/files/deploy-operators.sh | bash
helm install -n my-prometheus mobb/rosa-federated-prometheus
```
2 changes: 1 addition & 1 deletion charts/rosa-federated-prometheus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for Kubernetes

type: application

version: 0.1.1
version: 0.2.0

appVersion: "0.1.0"

Expand Down
44 changes: 38 additions & 6 deletions charts/rosa-federated-prometheus/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Helm Chart to set up federated Prometheus on ROSA

This Helm chart will deploy a Prometheus server on ROSA and configure it to slurp in metrics from the cluster prometheus. It will also deploy Grafana and a set of graphs to duplicate the cluster dashboards as well as an example alert to show how to send alerts to a slack channel.

## Prerequisites

* A ROSA cluster
Expand All @@ -17,12 +19,42 @@ export PROM_NAMESPACE=custom-prometheus

This relies on the Prometheus and Grafana operators, you can deploy them from the OpenShift Console, or via the script found in `./files/deploy-operators.sh`.

```bash
./files/deploy-operators.sh
```
Run one of the following:

```bash
curl -sSL https://raw.githubusercontent.com/rh-mobb/helm-charts/main/charts/rosa-federated-prometheus/files/deploy-operators.sh | bash
```

or if you've cloned down this repository

```bash
./files/deploy-operators.sh
```

## Deploy the Helm Chart

```
helm install -n $PROM_NAMESPACE federated .
```
1. Add This Repository to your Helm

```bash
helm repo add mobb https://rh-mobb.github.io/helm-charts/
```

1. Update your Repository

```bash
helm repo update
```

1. Install a Chart

```bash
helm install -n my-prometheus mobb/rosa-federated-prometheus
```

1. Find the Routes

```bash
kubectl get routes
```

1. Access Grafana and Prometheus using the routes from above.
7 changes: 2 additions & 5 deletions charts/rosa-federated-prometheus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ grafana:
createSubscription: true
creteCatalogSource: true

dataSources: []

dashboards: []

# Update this to suit your slack, or other notification methods
alertManager:
configYaml: |
global:
slack_api_url: "https://hooks.slack.com/services/<your-slack-webhook-url>" # changeme
slack_api_url: "https://hooks.slack.com/services/<your-slack-webhook-url>"
route:
receiver: slack-notifications
group_by: [alertname]
Expand Down

0 comments on commit 181e9d0

Please sign in to comment.