mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
543f218fe9
Co-authored-by: Andrew Chubatiuk <andrew.chubatiuk@motional.com> Co-authored-by: Nikolay <https://github.com/f41gh7> Co-authored-by: Roman Khavronenko <roman@victoriametrics.com> |
||
---|---|---|
.. | ||
pb | ||
proto | ||
api.go | ||
README.md |
Datadog proto files
Content copied from https://github.com/DataDog/agent-payload/blob/master/proto/metrics/agent_payload.proto
Requirements
Modifications
Original proto files were modified:
- changed package name for
package beta
. - changed import paths - changed directory names.
- 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:
- remove all external imports
- remove all unneeded methods
- replace
unknownFields
withunknownFields []byte