You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,9 @@ Metrics with no labels are initialized at creation time. This can have unpleasan
59
59
60
60
To avoid that we'll have to properly isolate each task's metrics, which can be impossible or rather tricky, or we can create metrics with default, non-changing labels (like `hostname`). Such metrics will be initialized on first use (inc), and we'll be pushing only those we actually utilized.
61
61
62
-
## Batch clients
62
+
## Clients
63
+
64
+
### Batch clients
63
65
64
66
Batch clients spawn synchronization jobs "in background" (meaning in a thread or asyncio task) to periodically send all metrics from `ppc.PUSH_REGISTRY` to the destination.
65
67
@@ -107,7 +109,7 @@ async def main(urls):
107
109
```
108
110
109
111
110
-
## Streaming clients
112
+
###Streaming clients
111
113
112
114
If for some reason every metric change needs to be synced, UDP streaming clients are implemented in this library.
Usage is completely identical to batch clients' decorators / context managers.
122
124
123
-
:warning: Histogram and Summary `.time() decorator` doesn't work in this mode atm, because it can't be monkey-patched easily.
125
+
:warning: Histogram and Summary `.time() decorator` doesn't work in this mode atm, because it can't be monkey-patched easily.
126
+
127
+
128
+
## Transports
129
+
130
+
Main goal is not to interrupt measured jobs with errors from monitoring code. Therefor all transports will attempt to catch all network errors, logging error info and corresponding tracebacks to stdout.
0 commit comments