Skip to content

Commit 5295d9b

Browse files
authored
Merge pull request #140 from AET-DevOps25/feature/finalize-grafana-settigns
Add discord webhook as secret
2 parents 5109c3e + f5c5487 commit 5295d9b

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

.env.template

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ GITLAB_CLIENT_SECRET="" # see https://rancher.ase.cit.tum.de/dashboard/c/c-m-nhc
55
API_OPENAI="" # see https://rancher.ase.cit.tum.de/dashboard/c/c-m-nhcfjg9h/explorer/secret/team-continuous-disappointment/genai-secret#data
66
API_OPENWEBUI="" # see https://rancher.ase.cit.tum.de/dashboard/c/c-m-nhcfjg9h/explorer/secret/team-continuous-disappointment/genai-secret#data
77

8+
# If you also want to use/test grafana alerts, you need to set the following variable:
9+
DISCORD_WEBHOOK_URL=""
10+
811
# If you want to use cloud LLM models, you need to include your respective api keys (our openai key is already in rancher)
912

1013
API_OPENAI="" # see https://rancher.ase.cit.tum.de/dashboard/c/c-m-nhcfjg9h/explorer/secret/team-continuous-disappointment/genai-secret#data
1114
API_ANTHROPIC="" # your anthropic key
1215
API_MISTRAL="" # your mistral key
13-
API_HUGGINGFACEHUB="" # your huggingface api token
16+
API_HUGGINGFACEHUB="" # your huggingface api token

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,5 @@ jobs:
280280
--set secrets.gitlabClientSecretDev="${{ secrets.DEV_CLIENT_SECRET }}" \
281281
--set secrets.mongodbAdminPassword="${{ secrets.MONGODB_ADMIN_PASSWORD }}" \
282282
--set secrets.apiOpenAi="${{ secrets.API_OPENAI }}" \
283-
--set secrets.apiOpenWebUi="${{ secrets.API_OPENWEBUI }}"
283+
--set secrets.apiOpenWebUi="${{ secrets.API_OPENWEBUI }}" \
284+
--set secrets.discordWebhookUrl="${{ secrets.DISCORD_WEBHOOK_URL }}"

.github/workflows/helm-manual.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
--set secrets.gitlabClientSecretDev="${{ secrets.DEV_CLIENT_SECRET }}" \
2727
--set secrets.mongodbAdminPassword="${{ secrets.MONGODB_ADMIN_PASSWORD }}" \
2828
--set secrets.apiOpenAi="${{ secrets.API_OPENAI }}" \
29-
--set secrets.apiOpenWebUi="${{ secrets.API_OPENWEBUI }}"
29+
--set secrets.apiOpenWebUi="${{ secrets.API_OPENWEBUI }}" \
30+
--set secrets.discordWebhookUrl="${{ secrets.DISCORD_WEBHOOK_URL }}"

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ services:
125125
- GF_USERS_ALLOW_SIGN_UP=false
126126
- GF_FEATURE_TOGGLES_ENABLE=logsInExplore
127127
- GF_LOG_CONSOLECOLORS=true
128+
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
128129
depends_on:
129130
- prometheus
130131
- loki

monitoring/grafana/provisioning/alerting/contact-points.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ contactPoints:
66
- uid: aep95aewu00e8d
77
type: discord
88
settings:
9-
url: https://discord.com/api/webhooks/1384597112955867277/YXLiCFAP8G3sXSv0EMNcspAVSeIElReokz2r2LoK-gtB-SxEbiTlplqXsrL09d8pwj4x
9+
url: ${DISCORD_WEBHOOK_URL}
1010
use_discord_username: false
1111
disableResolveMessage: false

recipai-chart/templates/grafana/grafana-alerting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data:
1414
- uid: fepdr2f5po5q8c
1515
type: discord
1616
settings:
17-
url: "https://discord.com/api/webhooks/1384597112955867277/YXLiCFAP8G3sXSv0EMNcspAVSeIElReokz2r2LoK-gtB-SxEbiTlplqXsrL09d8pwj4x"
17+
url: {{ .Values.secrets.discordWebhookUrl | quote }}
1818
use_discord_username: false
1919
disableResolveMessage: false
2020

recipai-chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ secrets:
6363
mongodbAdminPassword: "set in CI pipeline"
6464
apiOpenAi: "set in CI pipeline"
6565
apiOpenWebUi: "set in CI pipeline"
66+
discordWebhookUrl: "set in CI pipeline"
6667

6768
genai:
6869
baseUrl: "https://gpu.aet.cit.tum.de"

0 commit comments

Comments
 (0)