3proxy icon indicating copy to clipboard operation
3proxy copied to clipboard

Prometheus metrics

Open mikolajsobolewski opened this issue 3 years ago • 8 comments

Do you have any plans to add prometheus metrics for 3proxy?

mikolajsobolewski avatar Jun 07 '21 13:06 mikolajsobolewski

You can describe metrics you expect, it should not be hard to add metrics page to admin.

z3APA3A avatar Jun 07 '21 14:06 z3APA3A

is it possible to extract counters with a command line or something like this?

imclint21 avatar Oct 17 '23 16:10 imclint21

you can get counters from admin via curl. It's also possible to extract records directly from file, the format is file header + records array by counter number:


struct counter_header {
        unsigned char sig[4];
        time_t updated;
};

struct counter_record {
        uint64_t traf64;
        time_t cleared;
        time_t updated;
};

z3APA3A avatar Nov 14 '23 14:11 z3APA3A

I think provide a /metrics endpoint could be a nice idea, like haproxy, they have a pretty nice implementation.

imclint21 avatar Nov 16 '23 19:11 imclint21

What do you think about this @z3APA3A?

imclint21 avatar Dec 22 '23 20:12 imclint21

List the metrics you expect to see

z3APA3A avatar Feb 19 '24 11:02 z3APA3A

Hi Vladimir,

There is a lit of metrics that haproxy exposes, but I guess its a bit overkill.

https://www.haproxy.com/documentation/haproxy-configuration-tutorials/alerts-and-monitoring/prometheus/

I guess we could have at least some stats about proxies use like current rate, speed etc, maybe some counters like total download/upload per proxies.

imclint21 avatar Feb 19 '24 12:02 imclint21