@ -34,28 +34,28 @@ int start_prometheus_server(void){
constchar*label[]={"realm","user"};
// Create traffic counter metrics
turn_traffic_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_rcvp","Represents finsihed sessions received packets",2,label));
turn_traffic_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_rcvb","Represents finsihed sessions received bytes",2,label));
turn_traffic_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_sentp","Represents finsihed sessions sent packets",2,label));
turn_traffic_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_sentb","Represents finsihed sessions sent bytes",2,label));
turn_traffic_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_rcvp","Represents finished sessions received packets",2,label));
turn_traffic_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_rcvb","Represents finished sessions received bytes",2,label));
turn_traffic_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_sentp","Represents finished sessions sent packets",2,label));
turn_traffic_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_sentb","Represents finished sessions sent bytes",2,label));
// Create finsihed sessions traffic for peers counter metrics
turn_traffic_peer_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_rcvp","Represents finsihed sessions peer received packets",2,label));
turn_traffic_peer_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_rcvb","Represents finsihed sessions peer received bytes",2,label));
turn_traffic_peer_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_sentp","Represents finsihed sessions peer sent packets",2,label));
turn_traffic_peer_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_sentb","Represents finsihed sessions peer sent bytes",2,label));
// Create finished sessions traffic for peers counter metrics
turn_traffic_peer_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_rcvp","Represents finished sessions peer received packets",2,label));
turn_traffic_peer_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_rcvb","Represents finished sessions peer received bytes",2,label));
turn_traffic_peer_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_sentp","Represents finished sessions peer sent packets",2,label));
turn_traffic_peer_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_traffic_peer_sentb","Represents finished sessions peer sent bytes",2,label));
// Create total finished traffic counter metrics
turn_total_traffic_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_rcvp","Represents total finsihed sessions received packets",0,NULL));
turn_total_traffic_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_rcvb","Represents total finsihed sessions received bytes",0,NULL));
turn_total_traffic_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_sentp","Represents total finsihed sessions sent packets",0,NULL));
turn_total_traffic_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_sentb","Represents total finsihed sessions sent bytes",0,NULL));
// Create total finsihed sessions traffic for peers counter metrics
turn_total_traffic_peer_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_rcvp","Represents total finsihed sessions peer received packets",0,NULL));
turn_total_traffic_peer_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_rcvb","Represents total finsihed sessions peer received bytes",0,NULL));
turn_total_traffic_peer_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_sentp","Represents total finsihed sessions peer sent packets",0,NULL));
turn_total_traffic_peer_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_sentb","Represents total finsihed sessions peer sent bytes",0,NULL));
turn_total_traffic_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_rcvp","Represents total finished sessions received packets",0,NULL));
turn_total_traffic_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_rcvb","Represents total finished sessions received bytes",0,NULL));
turn_total_traffic_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_sentp","Represents total finished sessions sent packets",0,NULL));
turn_total_traffic_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_sentb","Represents total finished sessions sent bytes",0,NULL));
// Create total finished sessions traffic for peers counter metrics
turn_total_traffic_peer_rcvp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_rcvp","Represents total finished sessions peer received packets",0,NULL));
turn_total_traffic_peer_rcvb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_rcvb","Represents total finished sessions peer received bytes",0,NULL));
turn_total_traffic_peer_sentp=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_sentp","Represents total finished sessions peer sent packets",0,NULL));
turn_total_traffic_peer_sentb=prom_collector_registry_must_register_metric(prom_counter_new("turn_total_traffic_peer_sentb","Represents total finished sessions peer sent bytes",0,NULL));