Inex Code
f005e4100c
feat: Service configuration ( #127 )
...
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/127
2024-07-26 18:39:12 +03:00
nhnn
e9e4cf680b
feat: add option to filter logs by unit or slice
2024-07-26 18:39:12 +03:00
dettlaff
c5b0257105
fix: imports
2024-07-26 16:32:05 +04:00
dettlaff
b17b4c2682
fix: rename Prometheus to Monitoring
2024-07-26 16:20:31 +04:00
dettlaff
1dae9046f2
feat: add union type
2024-07-26 15:50:12 +04:00
dettlaff
73f4915294
Merge remote-tracking branch 'origin/master' into add_monitoring_prometheus
2024-07-24 04:39:43 +04:00
nhnn
3bddfb15c4
fix: use GraphQL DateTime type for start and end arguments in monitoring.py
2024-07-15 17:16:24 +03:00
nhnn
2797b0b331
style: add self to make sure python isnt confused and format code
2024-07-15 17:00:36 +03:00
Inex Code
d18d644cec
Merge remote-tracking branch 'origin/master' into roundcube
2024-07-15 17:30:59 +04:00
Inex Code
d8fe54e0e9
fix: do not use bare 'except'
2024-07-15 17:05:38 +04:00
Inex Code
5c5e098bab
style: do not break line before logic operator
2024-07-15 17:02:34 +04:00
Inex Code
cc4b411657
refactor: Replace strawberry.types.Info with just Info
2024-07-15 16:59:27 +04:00
nhnn
94b0276f74
fix: extract business logic to utils/systemd_journal.py
2024-07-13 11:58:54 +03:00
Inex Code
5f3fc0d96e
chore: formatting
2024-07-10 19:18:22 +04:00
Inex Code
9f5f0507e3
Merge remote-tracking branch 'origin/master' into api-logs
2024-07-10 18:52:10 +04:00
nhnn
aa2a7ff3aa
style: format files with black & rearrange imports
2024-07-10 15:53:56 +03:00
nhnn
7e295f2e91
fix: yay! tests are working
2024-07-10 15:49:27 +03:00
nhnn
e988f77419
fix: fix tests (not working properly, yet)
2024-07-10 12:43:00 +03:00
nhnn
60c5e12946
fix: add type annotations to monitoring.py
2024-07-08 19:02:34 +03:00
nhnn
0834360961
feat: add memory and cpu metrics
2024-07-08 18:18:07 +03:00
dettlaff
3de0952c3f
tests: add
2024-07-07 16:33:15 +04:00
Inex Code
ceee6e4db9
fix: Read auth token from the connection initialization payload
...
Websockets do not provide headers, and sending a token as a query param is also not good (it gets into server's logs),
As an alternative, we can provide a token in the first ws payload.
Read more: https://strawberry.rocks/docs/general/subscriptions#authenticating-subscriptions
2024-07-05 18:14:18 +04:00
Houkime
05ffa036b3
refactor(jobs): offload job subscription logic to a separate file
2024-07-04 17:19:25 +03:00
Houkime
ccf71078b8
feature(websocket): add auth to counter too
2024-07-04 17:19:25 +03:00
Houkime
cb641e4f37
feature(websocket): add auth
2024-07-04 17:19:25 +03:00
Houkime
442538ee43
feature(jobs): UNSAFE endpoint to get job updates
2024-07-04 17:19:25 +03:00
Houkime
51ccde8b07
test(jobs): test simple counting
2024-07-04 17:19:25 +03:00
Houkime
cbe5c56270
chore(jobs): shorter typehints and import sorting
2024-07-04 17:19:25 +03:00
Houkime
ed777e3ebf
feature(jobs): add subscription endpoint
2024-07-04 17:19:25 +03:00
Houkime
fff8a49992
refactoring(jobs): break out a function returning all jobs
2024-07-04 17:19:25 +03:00
dettlaff
1b91168d06
style: fix imports
2024-06-27 17:43:13 +03:00
dettlaff
00204a6145
fix: from review
2024-06-22 16:12:29 +04:00
dettlaff
165ef260b5
feat: add monitoring to schema
2024-06-17 21:06:48 +04:00
dettlaff
852cc28c1a
fix: paste new query
2024-06-16 23:06:40 +04:00
dettlaff
01e30b96b2
feat: add prometheus.py, fix cpu_usage
2024-06-15 22:17:08 +04:00
nhnn
8b2e4666dd
fix: rename PageMeta to LogsPageMeta
2024-06-11 12:36:42 +03:00
def
2e92557e84
feat: add _send_request
2024-06-10 05:27:37 +03:00
def
cbdcb4a63f
feat: add class Monitoring
2024-06-10 04:57:41 +03:00
nhnn
3d2c79ecb1
feat: streaming of journald entries via graphql subscription
2024-06-06 16:07:08 +03:00
nhnn
fc2ac0fe6d
feat: graphql endpoint to fetch system logs from journald
2024-06-06 16:03:16 +03:00
Houkime
f772005b17
refactor(jobs): offload job subscription logic to a separate file
2024-05-27 21:30:51 +00:00
Houkime
950093a3b1
feature(websocket): add auth to counter too
2024-05-27 21:30:51 +00:00
Houkime
8fd12a1775
feature(websocket): add auth
2024-05-27 21:30:51 +00:00
Houkime
6d2fdab071
feature(jobs): UNSAFE endpoint to get job updates
2024-05-27 21:30:51 +00:00
Houkime
3910e416db
test(jobs): test simple counting
2024-05-27 21:30:51 +00:00
Houkime
967e59271f
chore(jobs): shorter typehints and import sorting
2024-05-27 21:30:51 +00:00
Houkime
3b0600efb6
feature(jobs): add subscription endpoint
2024-05-27 21:30:51 +00:00
Houkime
8d099c9a22
refactoring(jobs): break out a function returning all jobs
2024-05-27 21:30:51 +00:00
Inex Code
a742e66cc3
feat: Add "OTHER" as a server provider
...
We should allow manual SelfPrivacy installations on unsupported server providers. The ServerProvider enum is one of the gatekeepers that prevent this and we can change it easily as not much server-side logic rely on this.
The next step would be manual DNS management, but it would be much more involved than just adding the enum value.
2024-05-25 14:12:51 +03:00
Houkime
8e8e76a954
fix(backups): fix orphaned snapshots erroring out
2024-05-24 12:30:27 +00:00