VictoriaMetrics/lib/protoparser/datadog/api/sketches/beta
hagen1778 98d0f81f21
lib/protoparser/datadog: follow-up after 543f218fe9
* prevent /api/v1 from panic on parsing rows
* add tests for Extract function for v1 and v2 api's
* separate request types in different pools to prevent different objects mixing
* add changelog line

543f218fe9
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-11-28 15:04:15 +01:00
..
pb add datadog /api/v2/series and /api/beta/sketches support (#5094) 2023-11-28 14:52:29 +01:00
proto add datadog /api/v2/series and /api/beta/sketches support (#5094) 2023-11-28 14:52:29 +01:00
api.go lib/protoparser/datadog: follow-up after 543f218fe9 2023-11-28 15:04:15 +01:00
README.md add datadog /api/v2/series and /api/beta/sketches support (#5094) 2023-11-28 14:52:29 +01:00

Datadog proto files

Content copied from https://github.com/DataDog/agent-payload/blob/master/proto/metrics/agent_payload.proto

Requirements

  • protoc binary link
  • golang-proto-genlink
  • custom marshaller link

Modifications

Original proto files were modified:

  1. changed package name for package beta.
  2. changed import paths - changed directory names.
  3. changed go_package for ./pb.

How to generate pbs

run command:

export GOBIN=~/go/bin protoc
protoc -I=. --go_out=./lib/protoparser/datadog/api/sketches/beta --go-vtproto_out=./lib/protoparser/datadog/api/sketches/beta --plugin protoc-gen-go-vtproto="$GOBIN/protoc-gen-go-vtproto" --go-vtproto_opt=features=unmarshal lib/protoparser/datadog/api/sketches/beta/proto/*.proto

Generated code will be at lib/protoparser/datadog/api/sketches/beta/pb

manually edit it:

  1. remove all external imports
  2. remove all unneeded methods
  3. replace unknownFields with unknownFields []byte