apiVersion: v1
kind: Pod
metadata:
name: apache-logs
labels:
app: apache-logs
annotations:
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
static char *format_payload(void *data, size_t bytes) | |
{ | |
char *payload; | |
/* iterate msgpack and compose payload */ | |
return payload; | |
} | |
/* This function is only invoked from the runtime test library */ | |
static char *cb_test_payload(...void *data, size_t bytes, ....) |
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
```lua | |
function cb_replace(tag, timestamp, record) | |
new_record = {} | |
new_record["new"] = 12345 | |
new_record["old"] = record | |
return 1, timestamp, new_record | |
end | |
``` |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
[
{ "format": "fixarray",
"header": "0x94",
"length": 4,
"children": [
{ "format": "fixstr",
"header": "0xb3",
"length": 19,
"data": "0x646f636b65722e623034646262626334393663",
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
[INPUT] | |
Type cpu | |
Tag prod.cpu | |
[INPUT] | |
Type mem | |
Tag dev.mem | |
[OUTPUT] | |
Type forward |