aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/monitoring
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-15 12:52:27 +0100
committerGravatar Joe Banks <[email protected]>2024-04-15 12:52:27 +0100
commitbce270eecfc855ffa63816c4bf87da28aaac6165 (patch)
treef6a92131118fc573eb769a595264a2d71e300adc /kubernetes/namespaces/monitoring
parentMove metabase to tooling namespace (diff)
Move olli to monitoring namespace
Diffstat (limited to 'kubernetes/namespaces/monitoring')
-rw-r--r--kubernetes/namespaces/monitoring/olli/README.md13
-rw-r--r--kubernetes/namespaces/monitoring/olli/configmap.yaml10
-rw-r--r--kubernetes/namespaces/monitoring/olli/secrets.yamlbin0 -> 308 bytes
3 files changed, 23 insertions, 0 deletions
diff --git a/kubernetes/namespaces/monitoring/olli/README.md b/kubernetes/namespaces/monitoring/olli/README.md
new file mode 100644
index 0000000..ff748d5
--- /dev/null
+++ b/kubernetes/namespaces/monitoring/olli/README.md
@@ -0,0 +1,13 @@
+# Olli
+
+This folder contains the deployment information for [Olli](https://github.com/python-discord/olli), our Loki-Discord relay.
+
+The deployment manifest is located within the repository.
+
+The rest of the configuration can be applied through `kubectl apply -f .` in this directory.
+
+A secret called `olli-env` with the following a key `WEBHOOK_URL` with the configured Discord webhook.
+
+| Key | Description |
+| --------------| -------------------------- |
+| `WEBHOOK_URL` | The Discord webhook to use |
diff --git a/kubernetes/namespaces/monitoring/olli/configmap.yaml b/kubernetes/namespaces/monitoring/olli/configmap.yaml
new file mode 100644
index 0000000..ecedb90
--- /dev/null
+++ b/kubernetes/namespaces/monitoring/olli/configmap.yaml
@@ -0,0 +1,10 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: olli-config-env
+ namespace: monitoring
+data:
+ LOKI_API_URL: http://loki.loki.svc.cluster.local:3100
+ LOKI_JOBS: default/bot,default/site,default/sir-lancebot,default/sir-robin,default/metricity,default/snekbox,default/quackstack,default/black-knight
+ SERVICE_INTERVAL_MINUTES: '30'
+ SERVICE_TOKENS: '[{"token":"CRITICAL","color":"#ff5f5f"},{"token":"ERROR","color":"#ff5f5f"},{"token":"WARN","color":"#ffe24d","case_sensitive":true}]'
diff --git a/kubernetes/namespaces/monitoring/olli/secrets.yaml b/kubernetes/namespaces/monitoring/olli/secrets.yaml
new file mode 100644
index 0000000..8e3ef0b
--- /dev/null
+++ b/kubernetes/namespaces/monitoring/olli/secrets.yaml
Binary files differ