Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ cmake-build-*/
docs/html-documentation-generated*
integration_tests/external
golang/pkg/client/version.go
docs/internals/html
114 changes: 114 additions & 0 deletions docs/CONTROL_PLANE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Control Plane

**_Draft_**

pktvisord exposes a control plane over REST API.

## Discovery

pktvisord exposes a method for discovering the available modules, their configurable properties, and their associated
metrics schema.

All interfaces and schemas are versioned.

```
/api/v1/inputs
{
pcap: "1.0",
"dnstap": "1.0"
}
/api/v1/inputs/pcap/interface
{
version: "1.0",
"info": {
"interfaces": {
"eth0": {}
}
},
"defaults": {
"interface": eth0
},
config: {
iface: {
type: "string",
description: "the ethernet interface to capture on"
}
}
filters: {
bpf: {
type: "string",
description: "tcpdump compatible bpf filter expression"
}
},
metric_groups: {
}
}
/api/v1/inputs/dnstap/interface
{
version: "1.0",
config: {
socket: {
type: "string",
description: "the dnstap socket to listen to"
}
}
filters: {
qname_suffix: {
type: "string",
description: "match the DNS qname sufix given",
regex: "..."
}
},
metric_groups: {
}
}
/api/v1/handlers
{ dns: { version: "1.0" },
net: { version: "1.0" } }
/api/v1/handlers/dns/interface
{
version: "1.0",
config: {
periods: {
type: "int",
description: "number of metric periods to keep"
}
}
filters: {
qname_suffix: {
type: "string",
description: "match the DNS qname sufix given",
regex: "..."
}
},
metric_groups: {
top_error_qnames: {
description: "top N qnames with error result codes",
metrics: {,
top_refused: {
"type": "top_n",
"description": "..."
},
top_srvfail: {
"type": "top_n",
"description": "..."
},
top_nxdomain: {
"type": "top_n",
"description": "..."
},
}
},
transactions: {
description: "information on query/reply pairs",
metrics: {
...
}
}
}
}
/api/v1/handlers/net/interface
{
}
```

Loading