Protocol Documentation
Table of Contents
observer/observer.proto
ExportEvent
ExportEvent contains an event to be exported. Not to be used outside of the exporter feature.
Field |
Type |
Label |
Description |
---|---|---|---|
flow |
|||
node_status |
node_status informs clients about the state of the nodes participating in this particular GetFlows request. |
||
lost_events |
lost_events informs clients about events which got dropped due to a Hubble component being unavailable |
||
agent_event |
agent_event informs clients about an event received from the Cilium agent. |
||
debug_event |
debug_event contains Cilium datapath debug events |
||
node_name |
Name of the node where this event was observed. |
||
time |
Timestamp at which this event was observed. |
GetAgentEventsRequest
Field |
Type |
Label |
Description |
---|---|---|---|
number |
Number of flows that should be returned. Incompatible with |
||
first |
first specifies if we should look at the first |
||
follow |
follow sets when the server should continue to stream agent events after printing the last N agent events. |
||
since |
Since this time for returned agent events. Incompatible with |
||
until |
Until this time for returned agent events. Incompatible with |
GetAgentEventsResponse
GetAgentEventsResponse contains an event received from the Cilium agent.
Field |
Type |
Label |
Description |
---|---|---|---|
agent_event |
|||
node_name |
Name of the node where this event was observed. |
||
time |
Timestamp at which this event was observed. |
GetDebugEventsRequest
Field |
Type |
Label |
Description |
---|---|---|---|
number |
Number of events that should be returned. Incompatible with |
||
first |
first specifies if we should look at the first |
||
follow |
follow sets when the server should continue to stream debug events after printing the last N debug events. |
||
since |
Since this time for returned debug events. Incompatible with |
||
until |
Until this time for returned debug events. Incompatible with |
GetDebugEventsResponse
GetDebugEventsResponse contains a Cilium datapath debug events.
Field |
Type |
Label |
Description |
---|---|---|---|
debug_event |
|||
node_name |
Name of the node where this event was observed. |
||
time |
Timestamp at which this event was observed. |
GetFlowsRequest
Field |
Type |
Label |
Description |
---|---|---|---|
number |
Number of flows that should be returned. Incompatible with |
||
first |
first specifies if we should look at the first |
||
follow |
follow sets when the server should continue to stream flows after printing the last N flows. |
||
blacklist |
repeated |
blacklist defines a list of filters which have to match for a flow to be excluded from the result. If multiple blacklist filters are specified, only one of them has to match for a flow to be excluded. |
|
whitelist |
repeated |
whitelist defines a list of filters which have to match for a flow to be included in the result. If multiple whitelist filters are specified, only one of them has to match for a flow to be included. The whitelist and blacklist can both be specified. In such cases, the set of the returned flows is the set difference |
|
since |
Since this time for returned flows. Incompatible with |
||
until |
Until this time for returned flows. Incompatible with |
||
field_mask |
FieldMask allows clients to limit flow’s fields that will be returned. For example, {paths: [“source.id”, “destination.id”]} will return flows with only these two fields set. |
||
experimental |
|||
extensions |
extensions can be used to add arbitrary additional metadata to GetFlowsRequest. This can be used to extend functionality for other Hubble compatible APIs, or experiment with new functionality without needing to change the public API. |
GetFlowsRequest.Experimental
Experimental contains fields that are not stable yet. Support for experimental features is always optional and subject to change.
Field |
Type |
Label |
Description |
---|---|---|---|
field_mask |
Deprecated. FieldMask allows clients to limit flow’s fields that will be returned. For example, {paths: [“source.id”, “destination.id”]} will return flows with only these two fields set. Deprecated in favor of top-level field_mask. This field will be removed in v1.17. |
GetFlowsResponse
GetFlowsResponse contains either a flow or a protocol message.
Field |
Type |
Label |
Description |
---|---|---|---|
flow |
|||
node_status |
node_status informs clients about the state of the nodes participating in this particular GetFlows request. |
||
lost_events |
lost_events informs clients about events which got dropped due to a Hubble component being unavailable |
||
node_name |
Name of the node where this event was observed. |
||
time |
Timestamp at which this event was observed. |
GetNamespacesRequest
GetNamespacesResponse
GetNamespacesResponse contains the list of namespaces.
Field |
Type |
Label |
Description |
---|---|---|---|
namespaces |
repeated |
Namespaces is a list of namespaces with flows |
GetNodesRequest
GetNodesResponse
GetNodesResponse contains the list of nodes.
Field |
Type |
Label |
Description |
---|---|---|---|
nodes |
repeated |
Nodes is an exhaustive list of nodes. |
Namespace
Field |
Type |
Label |
Description |
---|---|---|---|
cluster |
|||
namespace |
Node
Node represents a cluster node.
Field |
Type |
Label |
Description |
---|---|---|---|
name |
Name is the name of the node. |
||
version |
Version is the version of Cilium/Hubble as reported by the node. |
||
address |
Address is the network address of the API endpoint. |
||
state |
State represents the known state of the node. |
||
tls |
TLS reports TLS related information. |
||
uptime_ns |
UptimeNS is the uptime of this instance in nanoseconds |
||
num_flows |
number of currently captured flows |
||
max_flows |
maximum capacity of the ring buffer |
||
seen_flows |
total amount of flows observed since the observer was started |
ServerStatusRequest
ServerStatusResponse
Field |
Type |
Label |
Description |
---|---|---|---|
num_flows |
number of currently captured flows In a multi-node context, this is the cumulative count of all captured flows. |
||
max_flows |
maximum capacity of the ring buffer In a multi-node context, this is the aggregation of all ring buffers capacities. |
||
seen_flows |
total amount of flows observed since the observer was started In a multi-node context, this is the aggregation of all flows that have been seen. |
||
uptime_ns |
uptime of this observer instance in nanoseconds In a multi-node context, this field corresponds to the uptime of the longest living instance. |
||
num_connected_nodes |
number of nodes for which a connection is established |
||
num_unavailable_nodes |
number of nodes for which a connection cannot be established |
||
unavailable_nodes |
repeated |
list of nodes that are unavailable This list may not be exhaustive. |
|
version |
Version is the version of Cilium/Hubble. |
||
flows_rate |
Approximate rate of flows seen by Hubble per second over the last minute. In a multi-node context, this is the sum of all flows rates. |
TLS
TLS represents TLS information.
Field |
Type |
Label |
Description |
---|---|---|---|
enabled |
Enabled reports whether TLS is enabled or not. |
||
server_name |
ServerName is the TLS server name that can be used as part of the TLS cert validation process. |
Observer
Observer returns a stream of Flows depending on which filter the user want to observe.
Method Name |
Request Type |
Response Type |
Description |
---|---|---|---|
GetFlows |
GetFlowsResponse stream |
GetFlows returning structured data, meant to eventually obsolete GetLastNFlows. |
|
GetAgentEvents |
GetAgentEventsResponse stream |
GetAgentEvents returns Cilium agent events. |
|
GetDebugEvents |
GetDebugEventsResponse stream |
GetDebugEvents returns Cilium datapath debug events. |
|
GetNodes |
GetNodes returns information about nodes in a cluster. |
||
GetNamespaces |
GetNamespaces returns information about namespaces in a cluster. The namespaces returned are namespaces which have had network flows in the last hour. The namespaces are returned sorted by cluster name and namespace in ascending order. |
||
ServerStatus |
ServerStatus returns some details about the running hubble server. |
Scalar Value Types
.proto Type |
Notes |
C++ |
Java |
Python |
Go |
C# |
PHP |
Ruby |
---|---|---|---|---|---|---|---|---|
double |
double |
float |
float64 |
double |
float |
Float |
||
float |
float |
float |
float32 |
float |
float |
Float |
||
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. |
int32 |
int |
int |
int32 |
int |
integer |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. |
int64 |
long |
int/long |
int64 |
long |
integer/string |
Bignum |
|
Uses variable-length encoding. |
uint32 |
int |
int/long |
uint32 |
uint |
integer |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. |
uint64 |
long |
int/long |
uint64 |
ulong |
integer/string |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. |
int32 |
int |
int |
int32 |
int |
integer |
Bignum or Fixnum (as required) |
|
Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. |
int64 |
long |
int/long |
int64 |
long |
integer/string |
Bignum |
|
Always four bytes. More efficient than uint32 if values are often greater than 2^28. |
uint32 |
int |
int |
uint32 |
uint |
integer |
Bignum or Fixnum (as required) |
|
Always eight bytes. More efficient than uint64 if values are often greater than 2^56. |
uint64 |
long |
int/long |
uint64 |
ulong |
integer/string |
Bignum |
|
Always four bytes. |
int32 |
int |
int |
int32 |
int |
integer |
Bignum or Fixnum (as required) |
|
Always eight bytes. |
int64 |
long |
int/long |
int64 |
long |
integer/string |
Bignum |
|
bool |
boolean |
boolean |
bool |
bool |
boolean |
TrueClass/FalseClass |
||
A string must always contain UTF-8 encoded or 7-bit ASCII text. |
string |
String |
str/unicode |
string |
string |
string |
String (UTF-8) |
|
May contain any arbitrary sequence of bytes. |
string |
ByteString |
str |
[]byte |
ByteString |
string |
String (ASCII-8BIT) |