Documentation
¶
Overview ¶
February 2016, cisco
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Codec factory ¶
Copyright (c) 2018 Cisco Systems ¶
Author: Steven Barth <[email protected]>
February 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Provide JSON codec, such as it is. More effort required here to exploit common bit (Telemetry message) and provide better implementations exporting metadata. Shipping MDT does not support JSON yet, though this is in the works. JSON is largely pass through.
Package jsonpb provides marshaling and unmarshaling between protocol buffers and JSON. It follows the specification at https://developers.google.com/protocol-buffers/docs/proto3#json.
This package produces a different output than the standard "encoding/json" package, which does not operate correctly on protocol buffers.
February 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Control and data message interfaces and common types.
May 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
June 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Extract metrics from telemetry data. This module is independent of the specific metrics package (e.g. prometheus, opentsdb etc). The specific metrics package handling can be found in metrics_x.go.
June 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Feed metrics to prometheus ¶
January 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Code orchestrating the various bits of the pipeline ¶
Go generate directives. Think of this as limited makefile. Some autogeration of source is required. Currently, we have:
- autogeneration of .pb.go from xport_grpc_out.proto
- auto patching of vendor directory, until and if changes can be back ported.
November 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Input node used to replay streaming telemetry archives. Archives can be recoded using 'tap' output module with "raw = true" set.
Tests for replay module are in tap_test.go
February 2016, cisco ¶
Copyright (c) 2016 by cisco Systems, Inc. All rights reserved.
Output node used to tap pipeline for troubleshooting ¶
Copyright (c) 2018 Cisco Systems ¶
Author: Steven Barth <[email protected]>
February 2016, cisco ¶
Copyright (c) 2016 by cisco Systdialin. Inc. All rights reserved.
gRPC client for server side streaming telemetry, and server for client side streaming.
The client sets up a connection with the server, subscribes for all paths, and then kicks off go routines to support each subscription, whilst watching for cancellation from the conductor
The server listens for gRPC connections from routers and then collects telemetry streams from gRPC clients.
Package main is a generated protocol buffer package.
It is generated from these files:
xport_grpc_out.proto
It has these top-level messages:
SubJSONReqMsg SubJSONRepMsg
Source Files
¶
- codec.go
- codec_gnmi.go
- codec_gpb.go
- codec_json.go
- crypt.go
- encap.go
- encap_st.go
- jsonpb.go
- message.go
- message_router.go
- metamonitoring.go
- metrics.go
- metrics_influx.go
- metrics_prometheus.go
- pipeline.go
- replay.go
- tap.go
- xport_gnmi.go
- xport_grpc.go
- xport_grpc_out.go
- xport_grpc_out.pb.go
- xport_kafka.go
- xport_tcp.go
- xport_udp.go
Directories
¶
Path | Synopsis |
---|---|
Packages exporting message samples for test purposes.
|
Packages exporting message samples for test purposes. |