GithubHelp home page GithubHelp logo

Comments (3)

ilyam8 avatar ilyam8 commented on July 22, 2024

Hi, @ekexcello.

  • Can you provide more info? I don't understand "Value proposition" - what do these paths (/a/b/c/d) mean? Metrics?
  • And "Proposed implementation" - can you elaborate? What do you mean by "taken from rspamd web interface"? Is there an endpoint that exposes metrics? Can you provide a link to the documentation? And share a sample of metrics?

I see that rspamd has built-in Prometheus exporter. Do you use it?

from netdata.

ilyam8 avatar ilyam8 commented on July 22, 2024

I see that it has /stat endpoint

Sample statistics response from an idle instance (no workload)
{
    "version": "3.4",
    "config_id": "gkwm3ysiqrx96kj1mwnfashx9hkypj833w1tgjaw4nysgwwxqthh7q78hyrezi9gzamke3n9ea7u8cjrzru7i5p4z7r9xhcoitjpjyy",
    "uptime": 717,
    "read_only": false,
    "scanned": 0,
    "learned": 0,
    "actions": {
        "reject": 0,
        "soft reject": 0,
        "rewrite subject": 0,
        "add header": 0,
        "greylist": 0,
        "no action": 0
    },
    "scan_times": [],
    "spam_count": 0,
    "ham_count": 0,
    "connections": 0,
    "control_connections": 109,
    "pools_allocated": 176,
    "pools_freed": 139,
    "bytes_allocated": 28807300,
    "chunks_allocated": 282,
    "shared_chunks_allocated": 4,
    "chunks_freed": 0,
    "chunks_oversized": 2,
    "fragmented": 0,
    "total_learns": 0,
    "statfiles": [],
    "fuzzy_hashes": {
        "rspamd.com": 446607461
    }
}

from netdata.

ilyam8 avatar ilyam8 commented on July 22, 2024

@ekexcello I added the following metrics (as rates):

    "scanned": 0,
    "learned": 0,
    "actions": {
        "reject": 0,
        "soft reject": 0,
        "rewrite subject": 0,
        "add header": 0,
        "greylist": 0,
        "no action": 0
    },
    "spam_count": 0,
    "ham_count": 0,
    "connections": 0,
    "control_connections": 109,

from netdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.