Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rmedvedev/grpcdump

Tool for capture and parse grpc traffic
https://github.com/rmedvedev/grpcdump

golang grpc protobuf sniffer tcpdump

Last synced: about 2 months ago
JSON representation

Tool for capture and parse grpc traffic

Awesome Lists containing this project

README

        

# GRPCDump
Tool for capture and decode GRPC messages from ethernet traffic

**Warning: Works only on Linux!**

[![Build Status](https://travis-ci.com/rmedvedev/grpcdump.svg?branch=master)](https://travis-ci.com/rmedvedev/grpcdump) [![Go Report Card](https://goreportcard.com/badge/github.com/rmedvedev/grpcdump)](https://goreportcard.com/report/github.com/rmedvedev/grpcdump) [![codecov](https://codecov.io/gh/rmedvedev/grpcdump/branch/master/graph/badge.svg)](https://codecov.io/gh/rmedvedev/grpcdump)

## Demo

![gif](docs/demo.gif)

## Installation / Getting started

Installation is supported only on Linux and does not require additional dependencies such as libpcap-dev

```bash
go run cmd/grpcdump/main.go
```
### From Source

```bash
go get -u github.com/rmedvedev/grpcdump/...
cp $(go env GOPATH)/bin/grpcdump /usr/local/bin
grpcdump
```

## Usage

The next option explains usage doc
```bash
grpcdump -help
```
For example, to capture grpc traffic, parse grpc request and response you need to use this command:
```bash
grpcdump -i lo -p 50051 -proto-path ./grpc/protofiles -proto-files helloworld.proto
```