[GH-ISSUE #1] should it still work? #1

Open
opened 2026-02-26 12:16:45 +03:00 by kerem · 6 comments
Owner

Originally created by @stefangweichinger on GitHub (Apr 20, 2023).
Original GitHub issue: https://github.com/badsmoke/rspamd_exporter/issues/1

Found your project and trying to use it .. so far I don't get any metrics into prometheus.

Do you still use it? maintain it? thanks for any help on this.

Yes, I configured the docker container, and prometheus should scrape it.

Originally created by @stefangweichinger on GitHub (Apr 20, 2023). Original GitHub issue: https://github.com/badsmoke/rspamd_exporter/issues/1 Found your project and trying to use it .. so far I don't get any metrics into prometheus. Do you still use it? maintain it? thanks for any help on this. Yes, I configured the docker container, and prometheus should scrape it.
Author
Owner

@badsmoke commented on GitHub (Apr 20, 2023):

I don't use it actively anymore, because mailcow has been exposing the metrics for quite some time.

but just tested it again, it still works for me

<!-- gh-comment-id:1515998106 --> @badsmoke commented on GitHub (Apr 20, 2023): I don't use it actively anymore, because mailcow has been exposing the metrics for quite some time. but just tested it again, it still works for me
Author
Owner

@stefangweichinger commented on GitHub (Apr 20, 2023):

not your issue: my nginx had some deny/allow-rules for "/rspamd"

I have to allow RFC1918-subnets maybe to let docker containers connect.

Right now with "allow any" I get metrics with curl. Great.

Corrected the name (and use port 5000) in prometheus.yml and bingo, I see the metrics.

Great, thanks!

Would you point me at the matching dashboard, maybe? thanks for that as well.

<!-- gh-comment-id:1516006950 --> @stefangweichinger commented on GitHub (Apr 20, 2023): not your issue: my nginx had some deny/allow-rules for "/rspamd" I have to allow RFC1918-subnets maybe to let docker containers connect. Right now with "allow any" I get metrics with curl. Great. Corrected the name (and use port 5000) in prometheus.yml and *bingo*, I see the metrics. Great, thanks! Would you point me at the matching dashboard, maybe? thanks for that as well.
Author
Owner

@badsmoke commented on GitHub (Apr 20, 2023):

I have added my dashboard.json , do not know if you still need to change the data source when importing

<!-- gh-comment-id:1516016012 --> @badsmoke commented on GitHub (Apr 20, 2023): I have added my dashboard.json , do not know if you still need to change the data source when importing
Author
Owner

@stefangweichinger commented on GitHub (Apr 20, 2023):

thanks, imported it, changed data source. So far nothing displayed, I'll check the queries now. Thanks anyway.

<!-- gh-comment-id:1516038634 --> @stefangweichinger commented on GitHub (Apr 20, 2023): thanks, imported it, changed data source. So far nothing displayed, I'll check the queries now. Thanks anyway.
Author
Owner

@stefangweichinger commented on GitHub (Apr 20, 2023):

That dashboard doesn't match the metrics I see:

curl -i http://0.0.0.0:9192/metrics2
HTTP/1.0 200 OK
Content-Type: text/plain; charset=utf-8
Content-Length: 662
Server: Werkzeug/1.0.0 Python/3.8.1
Date: Thu, 20 Apr 2023 10:02:11 GMT


rspamd_actions_reject 10189
rspamd_actions_soft_reject 0
rspamd_actions_rewrite_subject 1388
rspamd_actions_add_header 2939
rspamd_actions_greylist 495920
rspamd_actions_no_action 201014
rspamd_stats_scanned 711450
rspamd_stats_learned 352527
rspamd_stats_spam_count 14516
rspamd_stats_ham_count 696934
rspamd_stats_connections 0
rspamd_stats_control_connections 3984
rspamd_stats_pools_allocated 41676
rspamd_stats_pools_freed 41643
rspamd_stats_bytes_allocated 37056667
rspamd_stats_chunks_allocated 251
rspamd_stats_chunks_freed 0
rspamd_stats_chunks_oversized 1791
rspamd_stats_fragmented 0
rspamd_stats_total_learns 44573
rspamd_stats_fuzzy 2887631036

The names are different, and some of the used metrics aren't exported. But no problem, I edit the dashboard right now.
Take this just as feedback.

<!-- gh-comment-id:1516061658 --> @stefangweichinger commented on GitHub (Apr 20, 2023): That dashboard doesn't match the metrics I see: ``` curl -i http://0.0.0.0:9192/metrics2 HTTP/1.0 200 OK Content-Type: text/plain; charset=utf-8 Content-Length: 662 Server: Werkzeug/1.0.0 Python/3.8.1 Date: Thu, 20 Apr 2023 10:02:11 GMT rspamd_actions_reject 10189 rspamd_actions_soft_reject 0 rspamd_actions_rewrite_subject 1388 rspamd_actions_add_header 2939 rspamd_actions_greylist 495920 rspamd_actions_no_action 201014 rspamd_stats_scanned 711450 rspamd_stats_learned 352527 rspamd_stats_spam_count 14516 rspamd_stats_ham_count 696934 rspamd_stats_connections 0 rspamd_stats_control_connections 3984 rspamd_stats_pools_allocated 41676 rspamd_stats_pools_freed 41643 rspamd_stats_bytes_allocated 37056667 rspamd_stats_chunks_allocated 251 rspamd_stats_chunks_freed 0 rspamd_stats_chunks_oversized 1791 rspamd_stats_fragmented 0 rspamd_stats_total_learns 44573 rspamd_stats_fuzzy 2887631036 ``` The names are different, and some of the used metrics aren't exported. But no problem, I edit the dashboard right now. Take this just as feedback.
Author
Owner

@stefangweichinger commented on GitHub (Apr 20, 2023):

I assume your dashboard works with mailcow or so. Using "instance" all over the place, etc

<!-- gh-comment-id:1516066185 --> @stefangweichinger commented on GitHub (Apr 20, 2023): I assume your dashboard works with mailcow or so. Using "instance" all over the place, etc
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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
starred/rspamd_exporter#1
No description provided.