| 1 | #include <stdio.h> |
| 2 | #include <stdint.h> |
| 3 | #include <librist/stats.h> |
| 4 | #include <librist/logging.h> |
| 5 | |
| 6 | struct rist_prometheus_stats; |
| 7 | |
| 8 | struct prometheus_httpd_options { |
| 9 | bool enabled; |
| 10 | uint16_t port; |
| 11 | bool bind_sockaddr; |
| 12 | char *ip; |
| 13 | }; |
| 14 | |
| 15 | struct rist_prometheus_stats *rist_setup_prometheus_stats(struct rist_logging_settings *logging_settings, const char* tags, bool multiple_metric_datapoints, bool skipcreated, struct prometheus_httpd_options *httpd_opt, char *unix_socket); |
| 16 | void rist_prometheus_parse_stats(struct rist_prometheus_stats *ctx, const struct rist_stats *stats_container, uintptr_t id); |
| 17 | void rist_prometheus_parse_sender_stats(struct rist_prometheus_stats *ctx, uint16_t version, char *stats_json, uint32_t json_size, uintptr_t id); |
| 18 | void rist_prometheus_sender_add_peer(struct rist_prometheus_stats *ctx, uint64_t sender_id, uint32_t peer_id, const char *url, const char *local_url, bool from_callback); |
| 19 | void rist_prometheus_stats_print(struct rist_prometheus_stats *ctx, FILE* out); |
| 20 | void rist_prometheus_stats_destroy(struct rist_prometheus_stats *ctx); |
| 21 |