Behaviours: gen_server.
nas_counters() = {erlang:timestamp(), [#nas_counter{}]}
srv_counters() = [#server_counter{}]
stats() = {srv_counters(), nas_counters()}
aggregate/1 | calculate the per server sum of all counters of a per NAS list of counters. |
dec_counter/2 | |
inc_counter/2 | increment a specific counter value. |
inc_reply_counter/2 | increment reply counters. |
inc_request_counter/2 | increment requests counters. |
init_counter/1 | initialize a counter structure. |
init_counter/2 | |
observe/4 | Update the given histogram metric value NOTE: We use prometheus_histogram collector here instead of eradius_counter ets table because it is much easy to use histograms in this way. |
observe/5 | |
pull/0 | read counters and reset to zero. |
read/0 | read counters. |
reset/0 | reset all counters to zero. |
reset_counter/1 | reset counters. |
reset_counter/2 | |
set_boolean_metric/3 | Set Value for the given prometheus boolean metric by the given Name with the given values. |
calculate the per server sum of all counters of a per NAS list of counters
dec_counter(Counter, Nas) -> any()
inc_counter(Counter, Counters) -> any()
increment a specific counter value
inc_reply_counter(Counter, Nas) -> any()
increment reply counters
inc_request_counter(Counter, Nas) -> any()
increment requests counters
init_counter(X1) -> any()
initialize a counter structure
init_counter(Nas_prop, ServerName) -> any()
observe(Name, MetricsInfo, Value, Help) -> any()
Update the given histogram metric value NOTE: We use prometheus_histogram collector here instead of eradius_counter ets table because it is much easy to use histograms in this way. As we don't need to manage buckets and do the other histogram things in eradius, but prometheus.erl will do it for us
observe(Name, Nas_prop, Value, ServerName, Help) -> any()
pull() -> stats()
read counters and reset to zero
read() -> stats()
read counters
reset() -> any()
reset all counters to zero
reset_counter(Server_counter) -> any()
reset counters
reset_counter(Nas, ServerName) -> any()
set_boolean_metric(Name, Labels, Value) -> any()
Set Value for the given prometheus boolean metric by the given Name with the given values
Generated by EDoc