3proxy
3proxy copied to clipboard
Prometheus metrics
Do you have any plans to add prometheus metrics for 3proxy?
You can describe metrics you expect, it should not be hard to add metrics page to admin
.
is it possible to extract counters with a command line or something like this?
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;
};
I think provide a /metrics endpoint could be a nice idea, like haproxy, they have a pretty nice implementation.
What do you think about this @z3APA3A?
List the metrics you expect to see
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.