add prometheus-based monitoring service #66

Merged
inex merged 3 commits from nhnn/selfprivacy-nixos-config:monitoring into flakes 2024-07-15 17:10:33 +03:00
Contributor
No description provided.
nhnn added 1 commit 2024-06-10 05:02:42 +03:00
def added the
Service packaging
label 2024-06-10 05:03:43 +03:00
def requested review from inex 2024-06-10 05:03:49 +03:00
def requested review from alexoundos 2024-06-10 05:03:49 +03:00
def self-assigned this 2024-06-10 05:04:17 +03:00
inex reviewed 2024-06-10 16:36:19 +03:00
@ -0,0 +10,4 @@
config = lib.mkIf cfg.enable {
services.prometheus = {
enable = true;
port = 9001;
Owner

Make sure the port is not exposed.

Make sure the port is not exposed.
Author
Contributor

I've added listenAddress = "127.0.0.1";, should be fine.

I've added `listenAddress = "127.0.0.1";`, should be fine.
inex marked this conversation as resolved
Owner

Should be reviewed after SelfPrivacy/selfprivacy-rest-api#120 is ready

Should be reviewed after https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/120 is ready
nhnn added 1 commit 2024-06-17 21:42:55 +03:00
inex requested changes 2024-06-18 21:28:46 +03:00
@ -0,0 +13,4 @@
port = 9001;
listenAddress = "127.0.0.1";
exporters = {
node = {
Owner

services.prometheus.exporters.node.listenAddress defaults to "0.0.0.0". Change it too.

`services.prometheus.exporters.node.listenAddress` defaults to `"0.0.0.0"`. Change it too.
Author
Contributor

Thanks, fixed.

Thanks, fixed.
inex marked this conversation as resolved
nhnn added 1 commit 2024-06-18 21:30:11 +03:00
inex approved these changes 2024-06-18 21:30:38 +03:00
inex left a comment
Owner

Thanks

Thanks
inex added this to the Security hardening and audit, monitoring project 2024-06-19 16:47:08 +03:00
def requested review from inex 2024-07-11 16:17:32 +03:00
inex force-pushed monitoring from 5b97949749 to 7cb625ba0c 2024-07-15 17:07:33 +03:00 Compare
inex merged commit ea207b48d6 into flakes 2024-07-15 17:10:33 +03:00
Sign in to join this conversation.
No reviewers
No milestone
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: SelfPrivacy/selfprivacy-nixos-config#66
No description provided.