Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic self-reporting, core part #5129

Merged
merged 6 commits into from
Feb 7, 2024
Merged

Basic self-reporting, core part #5129

merged 6 commits into from
Feb 7, 2024

Conversation

Hocuri
Copy link
Collaborator

@Hocuri Hocuri commented Dec 28, 2023

Part of deltachat/deltachat-android#2909

For now, this is only sending a few basic metrics.

Also, it's sending to [email protected], but this account doesn't exist yet. I know nothing about Promotheus, so, I'll need some help with this from @link2xt or so - alternatively, I can create a very simple bot myself (that doesn't use Promotheus).

@Hocuri Hocuri force-pushed the hoc/self-reporting branch from a54e076 to c7e1483 Compare January 7, 2024 20:26
@Hocuri Hocuri changed the title [WIP] Basic self-reporting, core part Basic self-reporting, core part Jan 15, 2024
@Hocuri Hocuri requested review from link2xt and r10s January 15, 2024 19:05
@hpk42
Copy link
Contributor

hpk42 commented Jan 15, 2024

Discussed with @link2xt a few days ago about aiming for writing a bot that accepts metrics and makes them available to promotheus (or some other way of creating graphs) so that the only thing for any metrics source (e.g. cronjobs at chatmail servers) to send metrics to the bot. The bot effort is not specified yet, but it probably makes sense to write a simple jsonrpc-python metrics collection bot (because that can be modified by anyone, mostly) and start with the use cases of the self-reporting and chatmail-reporting.

@link2xt
Copy link
Collaborator

link2xt commented Jan 15, 2024

Prometheus is irrelevant here, it expects to pull metrics every N seconds or so.

I suggest to setup an email account and have a Python script that processes reports directly from the directory full of reports collected by the bot or even from the Maildir full of messages if we don't encrypt them. https://popcon.debian.org/ does this thing, reports are sent to [email protected] by a cronjob and then some perl and python scripts generate graphs that are presented on the website.

src/context.rs Show resolved Hide resolved
@r10s r10s force-pushed the hoc/self-reporting branch from 3bbacb1 to 8edc1b7 Compare February 6, 2024 22:23
Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i rebased, adapted (hopefully correctly :) to changed set_verified() api and fixed two warnings.

then tested the result with the android-pr - very nice!

Screenshot 2024-02-06 at 23 43 51

is there sth. that prevents this and the android PR from being merged?

@Hocuri Hocuri merged commit ec9d104 into main Feb 7, 2024
38 checks passed
@Hocuri Hocuri deleted the hoc/self-reporting branch February 7, 2024 19:23
Hocuri added a commit to deltachat/deltachat-android that referenced this pull request Feb 7, 2024
@iequidoo
Copy link
Collaborator

Btw, i forgot to report, i sent my statistics on 2024.05.14 02:10:26 UTC and Statistics bot replied to me with the "Thanks..." message only on 2024.05.24 14:40:15 UTC, i.e. after 10 days. It's just interesting what was happening all that time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants