feat: grafana + prometheus + loki on flora-6 #77

Merged
teutat3s merged 15 commits from feat/grafana into main 2023-12-13 23:21:32 +00:00
Owner
No description provided.
teutat3s added 4 commits 2023-12-03 14:54:57 +00:00
teutat3s added 1 commit 2023-12-04 17:05:59 +00:00
fix: systemd-networkd-wait-online timing out
All checks were successful
Flake checks / Check (pull_request) Successful in 19m21s
e09c53cb24
teutat3s added 2 commits 2023-12-05 12:53:44 +00:00
feat: init loki
Some checks failed
Flake checks / Check (pull_request) Failing after 2m25s
f70df23c60
teutat3s changed title from WIP: feat: grafana + prometheus to feat: grafana + prometheus + loki 2023-12-05 12:54:02 +00:00
teutat3s requested review from b12f 2023-12-05 12:54:20 +00:00
teutat3s requested review from hensoko 2023-12-05 12:54:20 +00:00
teutat3s requested review from axeman 2023-12-05 12:54:20 +00:00
teutat3s changed title from feat: grafana + prometheus + loki to feat: grafana + prometheus + loki on flora-6 2023-12-05 12:55:08 +00:00
teutat3s self-assigned this 2023-12-05 13:02:38 +00:00
teutat3s added 1 commit 2023-12-05 19:47:40 +00:00
fix: update pub.solar MX DNS record
Some checks reported warnings
Flake checks / Check (pull_request) Has been cancelled
3e53f6f765
teutat3s added 1 commit 2023-12-05 19:58:35 +00:00
fix: spf DNS record
All checks were successful
Flake checks / Check (pull_request) Successful in 19m17s
f9f72fb14f
teutat3s force-pushed feat/grafana from f9f72fb14f to f3436de94b 2023-12-06 18:20:17 +00:00 Compare
teutat3s force-pushed feat/grafana from f3436de94b to 6595109ae5 2023-12-06 19:13:01 +00:00 Compare
axeman reviewed 2023-12-08 15:44:46 +00:00
axeman left a comment
Owner

The loki config doesn't seem to contain any config to delete old logs.
According to the docs here the logs will live forever. Or did I miss something?

The loki config doesn't seem to contain any config to delete old logs. According to the docs [here](https://grafana.com/docs/loki/latest/operations/storage/retention/) the logs will live forever. Or did I miss something?
@ -0,0 +68,4 @@
auth_url = "https://auth.pub.solar/realms/pub.solar/protocol/openid-connect/auth";
token_url = "https://auth.pub.solar/realms/pub.solar/protocol/openid-connect/token";
api_url = "https://auth.pub.solar/realms/pub.solar/protocol/openid-connect/userinfo";
role_attribute_path = "contains(roles[*], 'admin') && 'GrafanaAdmin' || contains(roles[*], 'editor') && 'Editor' || 'Viewer'";
Owner

This looks wrong, we only have the 'admin' role in keycloack. Perhaps we should remove the editor role, doesn't seem like it make sense for our org.

This looks wrong, we only have the 'admin' role in keycloack. Perhaps we should remove the editor role, doesn't seem like it make sense for our org.
Owner

This looks wrong, we only have the 'admin' role in keycloack. Perhaps we should remove the editor role, probably doesn't make sense for our org.

This looks wrong, we only have the 'admin' role in keycloack. Perhaps we should remove the editor role, probably doesn't make sense for our org.
Author
Owner

Adressed in 10bb3295de.

Adressed in https://git.pub.solar/pub-solar/infra/commit/10bb3295de2f8622f9360cb310a396504d614a88.
teutat3s marked this conversation as resolved
@ -32,0 +37,4 @@
"br-91ba3e5e7589"
"vethd42ed22"
"veth8fbf599"
"vethd62653e"
Owner

These look like they can change, is there no better way to do this?
Also it would be nice to mention what's running on these containers.

These look like they can change, is there no better way to do this? Also it would be nice to mention what's running on these containers.
axeman marked this conversation as resolved
teutat3s added 2 commits 2023-12-08 16:32:03 +00:00
fix: don't ignore interfaces that can change
All checks were successful
Flake checks / Check (pull_request) Successful in 20m0s
16b1b1b416
Author
Owner

The loki config doesn't seem to contain any config to delete old logs.
According to the docs here the logs will live forever. Or did I miss something?

Fixed in eed4814258

> The loki config doesn't seem to contain any config to delete old logs. > According to the docs [here](https://grafana.com/docs/loki/latest/operations/storage/retention/) the logs will live forever. Or did I miss something? Fixed in https://git.pub.solar/pub-solar/infra/commit/eed48142583abe4c64a484ff7c324aa91fc69ff1
teutat3s added 1 commit 2023-12-12 18:58:41 +00:00
fix(flora-6): add docker0 to firewall trusted interfaces
All checks were successful
Flake checks / Check (pull_request) Successful in 16m26s
1e6b72fbd0
teutat3s added 1 commit 2023-12-12 20:31:28 +00:00
wip: try to declare trusted actions runner network
Some checks failed
Flake checks / Check (pull_request) Failing after 0s
201506ff9a
teutat3s added 1 commit 2023-12-12 20:40:40 +00:00
fix(flora-6): add br-* docker interfaces to firewall's
Some checks failed
Flake checks / Check (pull_request) Failing after 1s
1389338e65
trusted interfaces
teutat3s added 1 commit 2023-12-12 20:42:15 +00:00
wip: revert try to declare trusted actions runner network
Some checks reported warnings
Flake checks / Check (pull_request) Has been cancelled
eaee2b4985
teutat3s added 1 commit 2023-12-12 23:27:37 +00:00
wip: allow traffic from br-+ interfaces
Some checks reported warnings
Flake checks / Check (pull_request) Has been cancelled
88a961e09e
teutat3s force-pushed feat/grafana from 88a961e09e to d990db5bf0 2023-12-13 01:01:12 +00:00 Compare
teutat3s force-pushed feat/grafana from d990db5bf0 to 8c10839980 2023-12-13 01:12:21 +00:00 Compare
teutat3s force-pushed feat/grafana from 8c10839980 to 10bb3295de 2023-12-13 16:52:33 +00:00 Compare
teutat3s added 1 commit 2023-12-13 18:20:21 +00:00
feat(nachtigall): send logs to loki, https+basic auth
All checks were successful
Flake checks / Check (pull_request) Successful in 4m5s
e3d4f61a42
Use caddy as reverse proxy for loki on flora-6, add basic auth

Add promtail to nachtigall, push logs to flora-6
teutat3s added 1 commit 2023-12-13 19:45:42 +00:00
fix: new Greenbaum mail server is mail.greenbaum.zone
All checks were successful
Flake checks / Check (pull_request) Successful in 4m12s
d734adce58
axeman approved these changes 2023-12-13 21:59:22 +00:00
axeman left a comment
Owner

🪵🪵🪵 📈

🪵🪵🪵 📈
teutat3s merged commit f0fb575c81 into main 2023-12-13 23:21:32 +00:00
teutat3s deleted branch feat/grafana 2023-12-13 23:21:32 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pub-solar/infra#77
No description provided.