VOL-3705 Create option in kafka-topic-export to report ONU serial no in metrics in Hex format instead of ASCII chars

Change-Id: Id54f729efe4f9fee2accb3b18e97328b5e5db1ca
21 files changed
tree: 317064303de48420fcfaececaa557f7da40b3490
  1. .gitignore
  2. .gitreview
  3. CODE_OF_CONDUCT.md
  4. Dockerfile
  5. Makefile
  6. README.md
  7. VERSION
  8. common/
  9. config/
  10. go.mod
  11. go.sum
  12. main.go
  13. topic-exporter.go
  14. topic-listener.go
  15. types.go
  16. utils/
  17. vendor/
README.md

Kafka topic exported

Expected format

{
    "type": "slice",
    "ts": 1536617075.762331,
    "slice_data": [
        {
            "metrics": {
                "deferreds": 119.0,
                "rss-mb": 106.0
            },
            "metadata": {
                "logical_device_id": "",
                "title": "voltha.internal",
                "serial_no": "",
                "ts": 1536617075.762331,
                "context": {
                    "instance_id": "vcore-0"
                },     "device_id": ""
           
            }
        }
    ]
}