|
| 1 | +# CogStack Observability Helm Chart |
| 2 | + |
| 3 | +This chart installs the observability stack for a CogStack deployment on Kubernetes. |
| 4 | + |
| 5 | +It is a wrapper around the kube-prometheus-stack, aiming to provide a simple way to get with observability for cogstack services. |
| 6 | + |
| 7 | +## Overview |
| 8 | + |
| 9 | +This chart deploys: |
| 10 | + |
| 11 | +| Component | Description | |
| 12 | +|-----------|-------------| |
| 13 | +| **kube-prometheus-stack** | Prometheus Operator stack for metrics collection, rules, and monitoring components. | |
| 14 | +| **Prometheus** | Scrapes metrics from CogStack services and stores time series data. | |
| 15 | +| **Grafana** | Provides dashboards for visualising CogStack platform health and service metrics. | |
| 16 | +| **Bundled dashboards** | Preloads dashboards for CogStack availability, FastAPI metrics, and OpenSearch metrics. | |
| 17 | + |
| 18 | +This chart is intended to be installed alongside a CogStack deployment that exposes metrics through `ServiceMonitor`, `PodMonitor`, `Probe`, or related Prometheus resources. |
| 19 | + |
| 20 | +## Prerequisites |
| 21 | + |
| 22 | +- Kubernetes cluster |
| 23 | +- Helm 3+ |
| 24 | +- A CogStack deployment with metrics endpoints enabled |
| 25 | + |
| 26 | +## Installation |
| 27 | + |
| 28 | +```sh |
| 29 | +helm install observability oci://registry-1.docker.io/cogstacksystems/cogstack-observability-helm |
| 30 | +``` |
| 31 | + |
| 32 | +If you are deploying this alongside `cogstack-ce-helm`, you can enable the required monitors in the CE chart with the example override file at `../cogstack-ce-helm/values-observability.yaml`. |
| 33 | + |
| 34 | +## Configuration |
| 35 | +These are some values that are likely to need customization for your deployment: |
| 36 | + |
| 37 | +| Value | Default | Description | |
| 38 | +|-------|---------|-------------| |
| 39 | +| `kube-prometheus-stack.enabled` | `true` | Main switch for installing the bundled `kube-prometheus-stack`. Set this to `false` if your cluster already provides Prometheus and Grafana. | |
| 40 | +| `kube-prometheus-stack.crds.enabled` | `true` | Controls installation of Prometheus Operator CRDs. Set this to `false` when the CRDs are already installed and managed elsewhere. | |
| 41 | +| `kube-prometheus-stack.grafana.sidecar.dashboards.enabled` | `true` | Enables Grafana sidecar dashboard discovery for the dashboards shipped by this chart. Set this to `false` if Grafana or dashboard loading is handled externally. | |
| 42 | +| `kube-prometheus-stack.grafana.adminUser` | `"admin"` | Grafana admin username. | |
| 43 | +| `kube-prometheus-stack.grafana.adminPassword` | `"grafana-admin-password"` | Grafana admin password; change this for any real deployment. | |
| 44 | +| `kube-prometheus-stack.grafana.service.*` | not set | Configure how Grafana is exposed, for example `ClusterIP`, `NodePort`, or `LoadBalancer`. | |
| 45 | +| `kube-prometheus-stack.prometheus.service.*` | not set | Configure how Prometheus is exposed if direct access is required. | |
| 46 | +| `kube-prometheus-stack.prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues` | `false` | Allows Prometheus to discover `ServiceMonitor` resources not created by this chart. | |
| 47 | +| `kube-prometheus-stack.prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues` | `false` | Allows Prometheus to discover `PodMonitor` resources not created by this chart. | |
| 48 | +| `kube-prometheus-stack.prometheus.prometheusSpec.probeSelectorNilUsesHelmValues` | `false` | Allows Prometheus to discover `Probe` resources not created by this chart. | |
| 49 | +| `kube-prometheus-stack.prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues` | `false` | Allows Prometheus to discover `PrometheusRule` resources not created by this chart. | |
| 50 | +| `kube-prometheus-stack.prometheus.prometheusSpec.scrapeConfigSelectorNilUsesHelmValues` | `false` | Allows Prometheus to discover additional `ScrapeConfig` resources not created by this chart. | |
| 51 | + |
| 52 | +Example override file: |
| 53 | + |
| 54 | +```yaml |
| 55 | +# my-values.yaml |
| 56 | +kube-prometheus-stack: |
| 57 | + enabled: false |
| 58 | + crds: |
| 59 | + enabled: false |
| 60 | + grafana: |
| 61 | + sidecar: |
| 62 | + dashboards: |
| 63 | + enabled: false |
| 64 | +``` |
| 65 | +
|
| 66 | +Install with overrides: |
| 67 | +
|
| 68 | +```bash |
| 69 | +helm install cogstack-observability . -f my-values.yaml --namespace observability --create-namespace |
| 70 | +``` |
| 71 | + |
| 72 | +## Dependencies |
| 73 | + |
| 74 | +The chart depends on: |
| 75 | + |
| 76 | +- `kube-prometheus-stack` |
| 77 | + |
| 78 | +## Uninstall |
| 79 | + |
| 80 | +```bash |
| 81 | +helm uninstall cogstack-observability --namespace observability |
| 82 | +``` |
| 83 | + |
| 84 | +If the namespace was created only for this release, remove it with: |
| 85 | + |
| 86 | +```bash |
| 87 | +kubectl delete namespace observability |
| 88 | +``` |
| 89 | + |
| 90 | +## Requirements |
| 91 | + |
| 92 | +| Repository | Name | Version | |
| 93 | +|------------|------|---------| |
| 94 | +| oci://ghcr.io/prometheus-community/charts | kube-prometheus-stack | 81.2.2 | |
| 95 | + |
| 96 | +## Values |
| 97 | + |
| 98 | +| Key | Type | Default | Description | |
| 99 | +|-----|------|---------|-------------| |
| 100 | +| fullnameOverride | string | `""` | | |
| 101 | +| kube-prometheus-stack.crds.enabled | bool | `true` | | |
| 102 | +| kube-prometheus-stack.enabled | bool | `true` | | |
| 103 | +| kube-prometheus-stack.grafana.adminPassword | string | `"grafana-admin-password"` | | |
| 104 | +| kube-prometheus-stack.grafana.adminUser | string | `"admin"` | | |
| 105 | +| kube-prometheus-stack.grafana.enabled | bool | `true` | | |
| 106 | +| kube-prometheus-stack.grafana.sidecar.dashboards.enabled | bool | `true` | | |
| 107 | +| kube-prometheus-stack.prometheus.prometheusSpec.podMonitorSelectorNilUsesHelmValues | bool | `false` | | |
| 108 | +| kube-prometheus-stack.prometheus.prometheusSpec.probeSelectorNilUsesHelmValues | bool | `false` | | |
| 109 | +| kube-prometheus-stack.prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues | bool | `false` | | |
| 110 | +| kube-prometheus-stack.prometheus.prometheusSpec.scrapeConfigSelectorNilUsesHelmValues | bool | `false` | | |
| 111 | +| kube-prometheus-stack.prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues | bool | `false` | | |
| 112 | +| nameOverride | string | `""` | | |
| 113 | + |
| 114 | +---------------------------------------------- |
| 115 | +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) |
0 commit comments