|
| 1 | + |
| 2 | + |
| 3 | +# Module oc_producer_registry # |
| 4 | +* [Description](#description) |
| 5 | +* [Function Index](#index) |
| 6 | +* [Function Details](#functions) |
| 7 | + |
| 8 | +Registry maintains a set of metric producers for exporting. |
| 9 | + |
| 10 | +<a name="description"></a> |
| 11 | + |
| 12 | +## Description ## |
| 13 | +Most users will rely on the DefaultRegistry.<a name="index"></a> |
| 14 | + |
| 15 | +## Function Index ## |
| 16 | + |
| 17 | + |
| 18 | +<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#add_producer-1">add_producer/1</a></td><td></td></tr><tr><td valign="top"><a href="#add_producer-2">add_producer/2</a></td><td> |
| 19 | +Adds <code>Producer</code> to the <code>Registry</code>.</td></tr><tr><td valign="top"><a href="#read_all-1">read_all/1</a></td><td>Equivalent to <a href="#read_all-1"><tt>read_all(default)</tt></a>.</td></tr><tr><td valign="top"><a href="#read_all-2">read_all/2</a></td><td> |
| 20 | +Calls <code>Callback</code> for each metric produced by the metric producers in the <code>Registry</code>.</td></tr><tr><td valign="top"><a href="#read_to_list-0">read_to_list/0</a></td><td></td></tr><tr><td valign="top"><a href="#read_to_list-1">read_to_list/1</a></td><td></td></tr><tr><td valign="top"><a href="#remove_producer-1">remove_producer/1</a></td><td>Equivalent to <a href="#remove_producer-2"><tt>remove_producer(default, Producer)</tt></a>.</td></tr><tr><td valign="top"><a href="#remove_producer-2">remove_producer/2</a></td><td></td></tr></table> |
| 21 | + |
| 22 | + |
| 23 | +<a name="functions"></a> |
| 24 | + |
| 25 | +## Function Details ## |
| 26 | + |
| 27 | +<a name="add_producer-1"></a> |
| 28 | + |
| 29 | +### add_producer/1 ### |
| 30 | + |
| 31 | +`add_producer(Producer) -> any()` |
| 32 | + |
| 33 | +<a name="add_producer-2"></a> |
| 34 | + |
| 35 | +### add_producer/2 ### |
| 36 | + |
| 37 | +`add_producer(Registry, Producer) -> any()` |
| 38 | + |
| 39 | +Adds `Producer` to the `Registry`. |
| 40 | + |
| 41 | +<a name="read_all-1"></a> |
| 42 | + |
| 43 | +### read_all/1 ### |
| 44 | + |
| 45 | +`read_all(Callback) -> any()` |
| 46 | + |
| 47 | +Equivalent to [`read_all(default)`](#read_all-1). |
| 48 | + |
| 49 | +<a name="read_all-2"></a> |
| 50 | + |
| 51 | +### read_all/2 ### |
| 52 | + |
| 53 | +`read_all(Registry, Callback) -> any()` |
| 54 | + |
| 55 | +Calls `Callback` for each metric produced by the metric producers in the `Registry`. |
| 56 | + |
| 57 | +<a name="read_to_list-0"></a> |
| 58 | + |
| 59 | +### read_to_list/0 ### |
| 60 | + |
| 61 | +`read_to_list() -> any()` |
| 62 | + |
| 63 | +<a name="read_to_list-1"></a> |
| 64 | + |
| 65 | +### read_to_list/1 ### |
| 66 | + |
| 67 | +`read_to_list(Registry) -> any()` |
| 68 | + |
| 69 | +<a name="remove_producer-1"></a> |
| 70 | + |
| 71 | +### remove_producer/1 ### |
| 72 | + |
| 73 | +`remove_producer(Producer) -> any()` |
| 74 | + |
| 75 | +Equivalent to [`remove_producer(default, Producer)`](#remove_producer-2). |
| 76 | + |
| 77 | +<a name="remove_producer-2"></a> |
| 78 | + |
| 79 | +### remove_producer/2 ### |
| 80 | + |
| 81 | +`remove_producer(Registry, Producer) -> any()` |
| 82 | + |
0 commit comments