This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BenchmarkScatterGather1k-8 1000000 1995 ns/op 513.18 MB/s | |
| BenchmarkScatterGather4k-8 500000 3365 ns/op 1217.08 MB/s | |
| BenchmarkScatterGather16k-8 200000 6394 ns/op 2562.20 MB/s | |
| PASS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <czmq.h> | |
| #include "prometheuz.h" | |
| void *sender(void *arg) { | |
| zsock_t *sender = zsock_new_push ("inproc://demo"); | |
| while (1) { | |
| zstr_send (sender, "hello"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| action( | |
| name="to_local_file" | |
| type="omfile" | |
| ziplevel="4" | |
| template="custom_fileformat" | |
| dynafile="custom_filename" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if $programname startswith 'haproxy' then { | |
| action( | |
| name="haproxy_tcp" | |
| type="omfwd" | |
| protocol="tcp" | |
| target="someserver.digitalocean.com" | |
| port="514" | |
| ) | |
| action( |
OlderNewer