![]() |
Diffusion C API 6.12.0
|
DIFFUSION_TOPIC_METRIC_COLLECTOR_T * diffusion_topic_metric_collector_builder_create | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder, |
char * | name, | ||
char * | topic_selector, | ||
DIFFUSION_API_ERROR * | api_error ) |
Create a new topic metric collector using the values currently known by the builder.
builder | the topic metric collector builder |
name | the name of the topic metric collector |
topic_selector | the selector pattern that specifies the topics for which metrics are to be collected |
api_error | populated on API error. Can be NULL. |
api_error
pointer has been provided, this will be populated with the error information and should be freed with diffusion_api_error_free
.DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_export_to_prometheus | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder, |
bool | export_to_prometheus ) |
Specifies whether the metric collector should export metrics to Prometheus or not.
The default is that metrics are not exported to Prometheus.
builder | the topic metric collector builder |
export_to_prometheus | true to export metrics to Prometheus |
void diffusion_topic_metric_collector_builder_free | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder | ) |
Free a topic metric collector builder.
builder | the topic metric collector builder |
DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_group_by_path_prefix_parts | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder, |
int | parts ) |
Specifies the number of leading parts of the topic path the metric collector should use to group results.
By default a topic metric collector does not group by the topic path prefix. If a positive number of parts is specified, it will enable grouping.
builder | the topic metric collector builder |
parts | the number of leading parts of the topic path to group by; set to 0 to disable grouping by path |
DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_group_by_topic_type | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder, |
bool | group_by_topic_type ) |
Specifies whether the metric collector should group by topic type.
By default a topic metric collector does not group by topic type.
builder | the topic metric collector builder |
group_by_topic_type | true to indicate that the collector should group by topic type |
DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_group_by_topic_view | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder, |
bool | group_by_topic_view ) |
Specifies whether the metric collector should group by topic view.
By default a topic metric collector does not group by topic view.
builder | the topic metric collector builder |
group_by_topic_view | true to indicate that the collector should group by topic view |
DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_init | ( | ) |
Initialize a new topic metric collector builder.
diffusion_session_topic_collector_builder_free
should be called on this pointer when no longer needed.
DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_maximum_groups | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder, |
int | limit ) |
Set the maximum number of groups maintained by the metric collector.
By default, the number of groups is not limited.
builder | the session metric collector builder |
limit | a positive integer |
DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * diffusion_topic_metric_collector_builder_reset | ( | DIFFUSION_TOPIC_METRIC_COLLECTOR_BUILDER_T * | builder | ) |
Reset the topic metric collector builder's internal values.
builder | the topic metric collector builder |