提交 ab3f849d 编写于 作者: N nicolargo

Glances don't send hostname (tag) to influxdb2

上级 ea181265
......@@ -20,6 +20,7 @@
"""InfluxDB (from to InfluxDB 1.8+) interface class."""
import sys
from platform import node
from glances.logger import logger
from glances.exports.glances_export import GlancesExport
......@@ -56,6 +57,9 @@ class Export(GlancesExport):
if not self.export_enable:
sys.exit(2)
# The hostname is always add as a tag
self.hostname = node().split('.')[0]
# Init the InfluxDB client
self.client = self.init()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册