Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
237f9fb0
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
237f9fb0
编写于
12月 30, 2014
作者:
N
Nicolargo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Statsd export module is Ok
上级
37a3fcf0
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
25 addition
and
6 deletion
+25
-6
NEWS
NEWS
+2
-1
README.rst
README.rst
+1
-1
conf/glances-test.conf
conf/glances-test.conf
+5
-0
conf/glances.conf
conf/glances.conf
+5
-0
glances/core/glances_main.py
glances/core/glances_main.py
+2
-0
glances/exports/glances_influxdb.py
glances/exports/glances_influxdb.py
+1
-2
man/glances.1
man/glances.1
+7
-1
setup.py
setup.py
+2
-1
未找到文件。
NEWS
浏览文件 @
237f9fb0
...
...
@@ -5,7 +5,8 @@ Glances Version 2.x
Version 2.X
===========
* Add a new InfluxDB export module (--export-influxdb) (issue #455)
* Add InfluxDB export module (--export-influxdb) (issue #455)
* Add Statsd export module (--export-statsd) (issue #465)
* Refactor export module (CSV export option is now --export-csv). It is now possible to export stats from the Glances client (issue #463)
* The Web inteface is now based on BootStarp / RWD grid (issue #417, #366 and #461) Thanks to Nicolas Hart @nclsHart
* Add the RAID plugins (issue #447)
...
...
README.rst
浏览文件 @
237f9fb0
...
...
@@ -206,7 +206,7 @@ And RTFM, always.
Gateway to others services
==========================
Glances can export stats to: CSV file
and/or InfluxDB
server.
Glances can export stats to: CSV file
, InfluxDB and Statsd
server.
Documentation
=============
...
...
conf/glances-test.conf
浏览文件 @
237f9fb0
...
...
@@ -150,3 +150,8 @@ port=8086
user
=
root
password
=
root
db
=
glances
[
statsd
]
host
=
localhost
port
=
8125
#prefix=glances
conf/glances.conf
浏览文件 @
237f9fb0
...
...
@@ -150,3 +150,8 @@ port=8086
user
=
root
password
=
root
db
=
glances
[
statsd
]
host
=
localhost
port
=
8125
#prefix=glances
glances/core/glances_main.py
浏览文件 @
237f9fb0
...
...
@@ -96,6 +96,8 @@ class GlancesMain(object):
dest
=
'export_csv'
,
help
=
_
(
'export stats to a CSV file'
))
parser
.
add_argument
(
'--export-influxdb'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'export_influxdb'
,
help
=
_
(
'export stats to an InfluxDB server'
))
parser
.
add_argument
(
'--export-statsd'
,
action
=
'store_true'
,
default
=
False
,
dest
=
'export_statsd'
,
help
=
_
(
'export stats to a Statsd server'
))
# Client/Server option
parser
.
add_argument
(
'-c'
,
'--client'
,
dest
=
'client'
,
help
=
_
(
'connect to a Glances server by IPv4/IPv6 address or hostname'
))
...
...
glances/exports/glances_influxdb.py
浏览文件 @
237f9fb0
...
...
@@ -24,7 +24,6 @@ from influxdb import InfluxDBClient, client
import
sys
# Import Glances lib
from
glances.core.glances_globals
import
is_py3
from
glances.core.glances_logging
import
logger
from
ConfigParser
import
NoSectionError
,
NoOptionError
from
glances.exports.glances_export
import
GlancesExport
...
...
@@ -35,7 +34,7 @@ class Export(GlancesExport):
"""This class manages the InfluxDB export module."""
def
__init__
(
self
,
config
=
None
,
args
=
None
):
"""Init the
CSV
export IF."""
"""Init the
InfluxDB
export IF."""
GlancesExport
.
__init__
(
self
,
config
=
config
,
args
=
args
)
# Load the InfluxDB configuration file
...
...
man/glances.1
浏览文件 @
237f9fb0
...
...
@@ -67,9 +67,15 @@ enable the history mode
B \-\-path-history PATH_HISTORY
set the export path for graph history
.TP
.B \-\-
output-csv OUTPUT_CSV
.B \-\-
export-csv CSV_FILE
export stats to a CSV file
.TP
.B \-\-export-influxdb
export stats to an InfluxDB server
.TP
.B \-\-export-statsd
export stats to a Statsd server
.TP
.B \-s, \-\-server
run Glances in server mode
.TP
...
...
setup.py
浏览文件 @
237f9fb0
...
...
@@ -66,7 +66,8 @@ setup(
'SNMP'
:
[
'pysnmp'
],
'CHART'
:
[
'matplotlib'
],
'BROWSER'
:
[
'zeroconf>=0.16'
,
'netifaces'
],
'RAID'
:
[
'pymdstat'
]
'RAID'
:
[
'pymdstat'
],
'EXPORT'
:
[
'influxdb'
,
'statsd'
]
},
packages
=
[
'glances'
],
include_package_data
=
True
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录