SEBA-599 Kafka topic exporter port_id

This is a rebase and squash of patchsets 16737 and 16566

Change-Id: I772e3da35d6d2fd87d5b1d2b307cd08ddf69153e
3 files changed
tree: ef585f902f786d26f8133405944b236d77e5545c
  1. .gitignore
  2. .gitreview
  3. CODE_OF_CONDUCT.md
  4. Dockerfile
  5. Gopkg.lock
  6. Gopkg.toml
  7. Makefile
  8. README.md
  9. VERSION
  10. common/
  11. config/
  12. main.go
  13. topic-exporter.go
  14. topic-listener.go
  15. types.go
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": ""
           
            }
        }
    ]
}