DB connection Count neet to post on api_endpoint
basePath = "[System]Gateway/Database"
results = system.tag.browse(basePath)
print len(results)
headers = {"Content-Type": "text/plain"}
#charset=utf-8"
#api_endpoint = "[http://my-json-server.typicode.com/typicode/demo/posts"](http://my-json-server.typicode.com/typicode/demo/posts%22)
api_endpoint = "[http://localhost:14499/metrics/ingest"](http://localhost:14499/metrics/ingest%22)
#
#
data = {"ignition.dbconnection,db=1": len(results) }
#
response = system.net.httpPost(api_endpoint,data,headers)
print response
i get this error "IOError: Connection refused: getsockopt" can anyone help me