Compare commits
21
Commits
loki-tsdb
...
codeowners
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b9a9f886f
|
||
|
|
264c12025b | ||
|
|
3fcd3d1bbb | ||
|
|
33c2614aaf | ||
|
|
400e0d71d1 | ||
|
|
085992dab0
|
||
|
|
40d31a535f
|
||
|
|
cb180f575c | ||
|
|
6db3afa97c
|
||
|
|
b6731345eb
|
||
|
|
b517d8a4bc
|
||
|
|
53a97128f7 | ||
|
|
ee6bd829c3 | ||
|
|
f54ab853ad | ||
|
|
f130a61bd2 | ||
|
|
7d7060c308
|
||
|
|
d3cc5977db | ||
|
|
05b5b3d742 | ||
|
|
09dd411989 | ||
|
|
6ec83806e1 | ||
|
|
d6f5e7ebf6 |
@@ -1 +1,3 @@
|
|||||||
|
.*smartctl.* @fauno
|
||||||
|
compose\.docker-events\.yml @simon
|
||||||
* @coop-cloud/monitoring-ng-maintainers
|
* @coop-cloud/monitoring-ng-maintainers
|
||||||
|
|||||||
@@ -166,19 +166,28 @@ THX to the previous work of @decentral1se @knooflok @3wc @cellarspoon @mirsal
|
|||||||
```
|
```
|
||||||
COMPOSE_FILE="$COMPOSE_FILE:compose.matrix-alertmanager-receiver.yml"
|
COMPOSE_FILE="$COMPOSE_FILE:compose.matrix-alertmanager-receiver.yml"
|
||||||
```
|
```
|
||||||
|
2. Create a matrix bot account and get an access token:
|
||||||
|
|
||||||
2. Insert the matrix access token secret:
|
```
|
||||||
|
abra app run matrix.example.com app -- sh -c 'register_new_matrix_user -u <botusername> --no-admin -k "$(cat /var/run/secrets/registration)" http://localhost:8008'
|
||||||
|
curl -XPOST --json '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://matrix.example.com/_matrix/client/v3/login"
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Insert the matrix access token secret:
|
||||||
```
|
```
|
||||||
abra app secret insert monitoring.marx.klasse-methode.it matrix_token v1
|
abra app secret insert monitoring.marx.klasse-methode.it matrix_token v1
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Set required configurations:
|
4. Set required configurations:
|
||||||
```
|
```
|
||||||
GF_MATRIX_USER_ID=
|
GF_MATRIX_USER_ID=<botusername>
|
||||||
GF_MATRIX_ROOM_ID=
|
GF_MATRIX_ROOM_ID=<room-id>
|
||||||
GF_MATRIX_HOME_SERVER_URL=
|
GF_MATRIX_HOME_SERVER_URL=matrix.example.com
|
||||||
```
|
```
|
||||||
4. Configure Alertmanager webhook and set the url to `http://matrix-alertmanager-receiver:12345/alerts/<room-id>`
|
5. Configure Alertmanager webhook:
|
||||||
|
- Create contact point under Grafana → Alerting → Contact Points → New Contact Point
|
||||||
|
- Set Integration to "Webhook"
|
||||||
|
- Set the url to `http://matrix-alertmanager-receiver:12345/alerts/<room-id>`
|
||||||
|
|
||||||
### Alerts
|
### Alerts
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,12 @@ export GF_BACKUP_DASH_VERSION=v1
|
|||||||
export GF_CUSTOM_INI_VERSION=v4
|
export GF_CUSTOM_INI_VERSION=v4
|
||||||
export LOKI_YML_VERSION=v4
|
export LOKI_YML_VERSION=v4
|
||||||
export PROMETHEUS_YML_VERSION=v2
|
export PROMETHEUS_YML_VERSION=v2
|
||||||
export MATRIX_ALERTMANAGER_CONFIG_VERSION=v1
|
export MATRIX_ALERTMANAGER_CONFIG_VERSION=v2
|
||||||
export MATRIX_ALERTMANAGER_ENTRYPOINT_VERSION=v1
|
export MATRIX_ALERTMANAGER_ENTRYPOINT_VERSION=v1
|
||||||
export GF_ALERTS_NODE_VERSION=v5
|
export GF_ALERTS_NODE_VERSION=v5
|
||||||
export GF_ALERTS_LOKI_VERSION=v5
|
export GF_ALERTS_LOKI_VERSION=v5
|
||||||
export CONFIG_ALLOY_VERSION=v3
|
export CONFIG_ALLOY_VERSION=v3
|
||||||
|
export GF_ALERTS_TRAEFIK_VERSION=v1
|
||||||
|
|
||||||
# migrates secrets from old names to new names by reading values from the
|
# migrates secrets from old names to new names by reading values from the
|
||||||
# running containers on the server and re-inserting them under the new names.
|
# running containers on the server and re-inserting them under the new names.
|
||||||
|
|||||||
@@ -54,21 +54,35 @@ templating:
|
|||||||
{{ else if .Alert.Labels.alertname }}
|
{{ else if .Alert.Labels.alertname }}
|
||||||
{{ .Alert.Labels.alertname }}
|
{{ .Alert.Labels.alertname }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Alert.Labels.rulename }}
|
||||||
|
→ <strong>{{ .Alert.Labels.rulename }}</strong>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Alert.Labels.grafana_folder }}
|
||||||
|
<em>({{ .Alert.Labels.grafana_folder }})</em>
|
||||||
|
{{ end }}
|
||||||
>>
|
>>
|
||||||
{{ if .Alert.Labels.severity }}
|
{{ if .Alert.Labels.severity }}
|
||||||
{{ .Alert.Labels.severity | ToUpper }}:
|
{{ .Alert.Labels.severity | ToUpper }}:
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Alert.Annotations.description }}
|
{{ if .Alert.Annotations.description }}
|
||||||
{{ .Alert.Annotations.description }}
|
{{ .Alert.Annotations.description }}
|
||||||
{{ else if .Alert.Annotations.summary }}
|
{{ else if .Alert.Annotations.summary }}
|
||||||
{{ .Alert.Annotations.summary }}
|
{{ .Alert.Annotations.summary }}
|
||||||
|
{{ else if .Alert.Labels.rulename }}
|
||||||
|
Query {{ .Alert.Labels.ref_id }} returned no data (datasource {{ .Alert.Labels.datasource_uid }})
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Alert.Labels.instance }}
|
||||||
|
on {{ .Alert.Labels.instance }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
>>
|
>>
|
||||||
{{ if .Alert.Annotations.runbook }}
|
{{ if .Alert.Annotations.runbook }}
|
||||||
<a href="{{ .Alert.Annotations.runbook }}">Runbook</a> |
|
<a href="{{ .Alert.Annotations.runbook }}">Runbook</a> |
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Alert.Annotations.dashboard }}
|
{{ if .Alert.Annotations.dashboard }}
|
||||||
<a href="{{ .Alert.Annotations.dashboard }}">Dashboard</a> |
|
<a href="{{ .Alert.Annotations.dashboard }}">Dashboard</a> |
|
||||||
|
{{ end }}
|
||||||
|
{{ if .GeneratorURL }}
|
||||||
|
<a href="{{ .GeneratorURL }}">Rule</a> |
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a href="{{ .SilenceURL }}">Silence</a>
|
<a href="{{ .SilenceURL }}">Silence</a>
|
||||||
</p>`}}'
|
</p>`}}'
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:13.2.3
|
image: grafana/grafana:13.3.0
|
||||||
volumes:
|
volumes:
|
||||||
- grafana-data:/var/lib/grafana:rw
|
- grafana-data:/var/lib/grafana:rw
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v3.15.1
|
image: prom/prometheus:v3.16.0
|
||||||
secrets:
|
secrets:
|
||||||
- basic_auth
|
- basic_auth
|
||||||
volumes:
|
volumes:
|
||||||
@@ -28,7 +28,7 @@ services:
|
|||||||
start_period: 30s
|
start_period: 30s
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: unless-stopped
|
condition: any
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.swarm.network=proxy"
|
- "traefik.swarm.network=proxy"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ services:
|
|||||||
image: "prometheuscommunity/smartctl-exporter:v0.15.0"
|
image: "prometheuscommunity/smartctl-exporter:v0.15.0"
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/lib/smartmontools/json:/debug"
|
- "/var/lib/smartmontools/json:/debug"
|
||||||
|
- "/dev:/dev:ro"
|
||||||
command:
|
command:
|
||||||
- "--smartctl.fake-data"
|
- "--smartctl.fake-data"
|
||||||
- "--smartctl.interval=1h"
|
|
||||||
networks:
|
networks:
|
||||||
- "proxy"
|
- "proxy"
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: grafana/alloy:v1.20.1
|
image: grafana/alloy:v1.21.3
|
||||||
hostname: "${DOMAIN}"
|
hostname: "${DOMAIN}"
|
||||||
configs:
|
configs:
|
||||||
- source: config_alloy
|
- source: config_alloy
|
||||||
@@ -50,10 +50,10 @@ services:
|
|||||||
start_period: 30s
|
start_period: 30s
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: unless-stopped
|
condition: any
|
||||||
labels:
|
labels:
|
||||||
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
|
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=2.3.0+v1.20.1"
|
- "coop-cloud.${STACK_NAME}.version=2.4.0+v1.21.3"
|
||||||
configs:
|
configs:
|
||||||
config_alloy:
|
config_alloy:
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
- opt-in migration of Loki's index store from deprecated boltdb-shipper to TSDB via LOKI_TSDB_FROM_DATE
|
- opt-in migration of Loki's index store from deprecated boltdb-shipper to TSDB via LOKI_TSDB_FROM_DATE
|
||||||
- alloy and prometheus containers restart policy from on-failure to unless-stopped
|
- alloy and prometheus containers restart policy from on-failure to any
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
smartctl exporter works again!
|
||||||
Reference in New Issue
Block a user