message: Finish first usable version of `mem_export.py`
diff: from http.client import HTTPConnection
  import os
  -from pprint import pprint
  import socket
  import sys
  import time
  @@ -31,6 +30,7 @@ class UnixStreamTransport(client.Transport, object):
  return UnixStreamHTTPConnection(self.socket_path)
  +def main():
  net_name = "net-1"
  sock_addr = os.path.join(
  os.path.dirname(__file__),
  @@ -54,6 +54,8 @@ gauges = {
  "dirty": Gauge("os_mem_dirty_bytes", "Dirty memory size", ["node"]),
  }
  + start_http_server(8000)
  +
  while True:
  print("Retrieving data for from {}".format(sock_addr))
  @@ -89,3 +91,7 @@ while True:
  print("failed: {}".format(e))
  time.sleep(delay)
  +
  +
  +if __name__ == "__main__":
  + main()
  