Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
prometheus_general_config Struct Reference

Prometheus general configuration. More...

#include <res_prometheus.h>

Data Fields

struct ast_string_field_mgr __field_mgr
 
struct ast_string_field_pool__field_mgr_pool
 
const ast_string_field auth_password
 Auth password for Basic Auth.
 
const ast_string_field auth_realm
 Auth realm.
 
const ast_string_field auth_username
 Auth username for Basic Auth.
 
unsigned int core_metrics_enabled
 Whether or not core metrics are enabled.
 
unsigned int enabled
 Whether or not the module is enabled.
 
const ast_string_field uri
 The HTTP URI we register ourselves to.
 

Detailed Description

Prometheus general configuration.

While the config file should generally provide the configuration for this module, it is useful for testing purposes to allow the configuration to be injected into the module. This struct is public to allow this to occur.

Note
Modifying the configuration outside of testing purposes is not encouraged.

Definition at line 68 of file res_prometheus.h.


The documentation for this struct was generated from the following file: