Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e111ba2e
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e111ba2e
编写于
12月 05, 2021
作者:
J
jiajingbin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
finish collectd icinga2 node_exporter Dockerfile
上级
c43f2234
变更
19
展开全部
隐藏空白更改
内联
并排
Showing
19 changed file
with
3529 addition
and
0 deletion
+3529
-0
tests/stability-scripts/collectd_docker/Dockerfile
tests/stability-scripts/collectd_docker/Dockerfile
+15
-0
tests/stability-scripts/collectd_docker/collectd.conf
tests/stability-scripts/collectd_docker/collectd.conf
+1649
-0
tests/stability-scripts/collectd_docker/entrypoint.sh
tests/stability-scripts/collectd_docker/entrypoint.sh
+4
-0
tests/stability-scripts/collectd_docker/run.sh
tests/stability-scripts/collectd_docker/run.sh
+2
-0
tests/stability-scripts/icinga2_docker/Dockerfile
tests/stability-scripts/icinga2_docker/Dockerfile
+22
-0
tests/stability-scripts/icinga2_docker/entrypoint.sh
tests/stability-scripts/icinga2_docker/entrypoint.sh
+5
-0
tests/stability-scripts/icinga2_docker/icinga-focal.list
tests/stability-scripts/icinga2_docker/icinga-focal.list
+2
-0
tests/stability-scripts/icinga2_docker/icinga.key
tests/stability-scripts/icinga2_docker/icinga.key
+30
-0
tests/stability-scripts/icinga2_docker/opentsdb.conf
tests/stability-scripts/icinga2_docker/opentsdb.conf
+25
-0
tests/stability-scripts/icinga2_docker/run.sh
tests/stability-scripts/icinga2_docker/run.sh
+2
-0
tests/stability-scripts/icinga2_docker/templates.conf
tests/stability-scripts/icinga2_docker/templates.conf
+83
-0
tests/stability-scripts/node_exporter_docker/Dockerfile
tests/stability-scripts/node_exporter_docker/Dockerfile
+13
-0
tests/stability-scripts/node_exporter_docker/entrypoint.sh
tests/stability-scripts/node_exporter_docker/entrypoint.sh
+3
-0
tests/stability-scripts/node_exporter_docker/node_exporter-1.3.0.linux-amd64.tar.gz
...de_exporter_docker/node_exporter-1.3.0.linux-amd64.tar.gz
+0
-0
tests/stability-scripts/node_exporter_docker/run.sh
tests/stability-scripts/node_exporter_docker/run.sh
+2
-0
tests/stability-scripts/tcollector_docker/Dockerfile
tests/stability-scripts/tcollector_docker/Dockerfile
+17
-0
tests/stability-scripts/tcollector_docker/collectd.conf
tests/stability-scripts/tcollector_docker/collectd.conf
+1649
-0
tests/stability-scripts/tcollector_docker/entrypoint.sh
tests/stability-scripts/tcollector_docker/entrypoint.sh
+4
-0
tests/stability-scripts/tcollector_docker/run.sh
tests/stability-scripts/tcollector_docker/run.sh
+2
-0
未找到文件。
tests/stability-scripts/collectd_docker/Dockerfile
0 → 100644
浏览文件 @
e111ba2e
FROM
ubuntu:20.04
ENV
REFRESHED_AT 2021-12-04
WORKDIR
/root
ARG
DEBIAN_FRONTEND=noninteractive
RUN
set
-ex
;
\
apt update
-y
--fix-missing
&&
\
apt-get
install
-y
--no-install-recommends
collectd
&&
\
rm
-rf
/var/lib/apt/lists/
*
COPY
collectd.conf /etc/collectd/collectd.conf
COPY
entrypoint.sh /entrypoint.sh
ENV
CollectdHostname localhost
ENV
TaosadapterIp 127.0.0.1
ENV
TaosadapterPort 6047
ENV
CollectdInterval 10
ENTRYPOINT
["/entrypoint.sh"]
tests/stability-scripts/collectd_docker/collectd.conf
0 → 100644
浏览文件 @
e111ba2e
此差异已折叠。
点击以展开。
tests/stability-scripts/collectd_docker/entrypoint.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
sed
-i
's/HOSTNAME/'
$HOSTNAME
'/g;s/TaosadapterIp/'
$TaosadapterIp
'/g;s/TaosadapterPort/'
$TaosadapterPort
'/g;s/CollectdInterval/'
$CollectdInterval
'/g;'
/etc/collectd/collectd.conf
/etc/init.d/collectd start
tail
-f
/dev/null
tests/stability-scripts/collectd_docker/run.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
docker run
-itd
--name
collectd_agent1
-h
collectd_agent1
-e
CollectdHostname
=
collectd_agent1
-e
TaosadapterIp
=
172.26.10.86
-e
TaosadapterPort
=
6047
-e
CollectdInterval
=
1 taosadapter_collectd:v1 /bin/bash
tests/stability-scripts/icinga2_docker/Dockerfile
0 → 100644
浏览文件 @
e111ba2e
FROM
ubuntu:20.04
ENV
REFRESHED_AT 2021-12-05
ARG
DEBIAN_FRONTEND=noninteractive
WORKDIR
/root
RUN
set
-ex
;
\
apt update
-y
--fix-missing
&&
\
apt
install
-y
gnupg
COPY
icinga-focal.list /etc/apt/sources.list.d/icinga-focal.list
COPY
icinga.key /root/icinga.key
RUN
set
-ex
;
\
apt-key add icinga.key
&&
\
apt update
-y
--fix-missing
&&
\
apt-get
install
-y
--no-install-recommends
icinga2 monitoring-plugins systemctl
&&
\
icinga2 feature
enable
opentsdb
&&
\
rm
-rf
/var/lib/apt/lists/
*
COPY
opentsdb.conf /etc/icinga2/features-available/opentsdb.conf
COPY
entrypoint.sh /entrypoint.sh
COPY
templates.conf /etc/icinga2/conf.d/templates.conf
ENV
Icinga2Interval 10s
ENV
TaosadapterIp 127.0.0.1
ENV
TaosadapterPort 6048
ENTRYPOINT
["/entrypoint.sh"]
tests/stability-scripts/icinga2_docker/entrypoint.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
sed
-i
's/TaosadapterIp/'
$TaosadapterIp
'/g;s/TaosadapterPort/'
$TaosadapterPort
'/g;'
/etc/icinga2/features-available/opentsdb.conf
sed
-i
's/Icinga2Interval/'
$Icinga2Interval
'/g;'
/etc/icinga2/conf.d/templates.conf
systemctl restart icinga2
tail
-f
/dev/null
tests/stability-scripts/icinga2_docker/icinga-focal.list
0 → 100644
浏览文件 @
e111ba2e
deb http://packages.icinga.com/ubuntu icinga-focal main
deb-src http://packages.icinga.com/ubuntu icinga-focal main
tests/stability-scripts/icinga2_docker/icinga.key
0 → 100644
浏览文件 @
e111ba2e
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQGiBFKHzk4RBACSHMIFTtfw4ZsNKAA03Gf5t7ovsKWnS7kcMYleAidypqhOmkGg
0petiYsMPYT+MOepCJFGNzwQwJhZrdLUxxMSWay4Xj0ArgpD9vbvU+gj8Tb02l+x
SqNGP8jXMV5UnK4gZsrYGLUPvx47uNNYRIRJAGOPYTvohhnFJiG402dzlwCg4u5I
1RdFplkp9JM6vNM9VBIAmcED/2jr7UQGsPs8YOiPkskGHLh/zXgO8SvcNAxCLgbp
BjGcF4Iso/A2TAI/2KGJW6kBW/Paf722ltU6s/6mutdXJppgNAz5nfpEt4uZKZyu
oSWf77179B2B/Wl1BsX/Oc3chscAgQb2pD/qPF/VYRJU+hvdQkq1zfi6cVsxyREV
k+IwA/46nXh51CQxE29ayuy1BoIOxezvuXFUXZ8rP6aCh4KaiN9AJoy7pBieCzsq
d7rPEeGIzBjI+yhEu8p92W6KWzL0xduWfYg9I7a2GTk8CaLX2OCLuwnKd7RVDyyZ
yzRjWs0T5U7SRAWspLStYxMdKert9lLyQiRHtLwmlgBPqa0gh7Q+SWNpbmdhIE9w
ZW4gU291cmNlIE1vbml0b3JpbmcgKEJ1aWxkIHNlcnZlcikgPGluZm9AaWNpbmdh
Lm9yZz6IYAQTEQIAIAUCUofOTgIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJ
EMbjGcM0QQaCgSQAnRjXdbsyqziqhmxfAKffNJYuMPwdAKCS/IRCVyQzApFBtIBQ
1xuoym/4C7kCDQRSh85OEAgAvPwjlURCi8z6+7i60no4n16dNcSzd6AT8Kizpv2r
9BmNBff/GNYGnHyob/DMtmO2esEuVG8w62rO9m1wzzXzjbtmtU7NZ1Tg+C+reU2I
GNVu3SYtEVK/UTJHAhLcgry9yD99610tYPN2Fx33Efse94mXOreBfCvDsmFGSc7j
GVNCWXpMR3jTYyGj1igYd5ztOzG63D8gPyOucTTl+RWN/G9EoGBv6sWqk5eCd1Fs
JlWyQX4BJn3YsCZx3uj1DWL0dAl2zqcn6m1M4oj1ozW47MqM/efKOcV6VvCs9SL8
F/NFvZcH4LKzeupCQ5jEONqcTlVlnLlIqId95Z4DI4AV9wADBQf/S6sKA4oH49tD
Yb5xAfUyEp5ben05TzUJbXs0Z7hfRQzy9+vQbWGamWLgg3QRUVPx1e4IT+W5vEm5
dggNTMEwlLMI7izCPDcD32B5oxNVxlfj428KGllYWCFj+edY+xKTvw/PHnn+drKs
LE65Gwx4BPHm9EqWHIBX6aPzbgbJZZ06f6jWVBi/N7e/5n8lkxXqS23DBKemapyu
S1i56sH7mQSMaRZP/iiOroAJemPNxv1IQkykxw2woWMmTLKLMCD/i+4DxejE50tK
dxaOLTc4HDCsattw/RVJO6fwE414IXHMv330z4HKWJevMQ+CmQGfswvCwgeBP9n8
PItLjBQAXIhJBBgRAgAJBQJSh85OAhsMAAoJEMbjGcM0QQaCzpAAmwUNoRyySf9p
5G3/2UD1PMueIwOtAKDVVDXEq5LJPVg4iafNu0SRMwgP0Q==
=icbY
-----END PGP PUBLIC KEY BLOCK-----
tests/stability-scripts/icinga2_docker/opentsdb.conf
0 → 100644
浏览文件 @
e111ba2e
/**
*
The
OpenTsdbWriter
type
writes
check
result
metrics
and
*
performance
data
to
a
OpenTSDB
tcp
socket
.
*/
object
OpenTsdbWriter
"opentsdb"
{
host
=
"TaosadapterIp"
port
=
TaosadapterPort
//
enable_generic_metrics
=
false
//
Custom
Tagging
,
refer
to
Icinga
object
type
documentation
for
//
OpenTsdbWriter
//
host_template
= {
//
metric
=
"icinga.host"
//
tags
= {
//
zone
=
"$host.zone$"
// }
//}
//
service_template
= {
//
metric
=
"icinga.service.$service.check_command$"
//
tags
= {
//
zone
=
"$service.zone$"
// }
//}
}
tests/stability-scripts/icinga2_docker/run.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
docker run
-itd
--name
icinga2_agent1
-h
icinga2_agent1
-e
TaosadapterIp
=
172.26.10.86
-e
TaosadapterPort
=
6048
-e
Icinga2Interval
=
1s taosadapter_icinga2:v1 /bin/bash
tests/stability-scripts/icinga2_docker/templates.conf
0 → 100644
浏览文件 @
e111ba2e
/*
*
Generic
template
examples
.
*/
/**
*
Provides
default
settings
for
hosts
.
By
convention
*
all
hosts
should
import
this
template
.
*
*
The
CheckCommand
object
`
hostalive
`
is
provided
by
*
the
plugin
check
command
templates
.
*
Check
the
documentation
for
details
.
*/
template
Host
"generic-host"
{
max_check_attempts
=
3
check_interval
=
Icinga2Interval
retry_interval
=
30
s
check_command
=
"hostalive"
}
/**
*
Provides
default
settings
for
services
.
By
convention
*
all
services
should
import
this
template
.
*/
template
Service
"generic-service"
{
max_check_attempts
=
5
check_interval
=
Icinga2Interval
retry_interval
=
30
s
}
/**
*
Provides
default
settings
for
users
.
By
convention
*
all
users
should
inherit
from
this
template
.
*/
template
User
"generic-user"
{
}
/**
*
Provides
default
settings
for
host
notifications
.
*
By
convention
all
host
notifications
should
import
*
this
template
.
*/
template
Notification
"mail-host-notification"
{
command
=
"mail-host-notification"
states
= [
Up
,
Down
]
types
= [
Problem
,
Acknowledgement
,
Recovery
,
Custom
,
FlappingStart
,
FlappingEnd
,
DowntimeStart
,
DowntimeEnd
,
DowntimeRemoved
]
vars
+= {
//
notification_icingaweb2url
=
"https://www.example.com/icingaweb2"
//
notification_from
=
"Icinga 2 Host Monitoring <icinga@example.com>"
notification_logtosyslog
=
false
}
period
=
"24x7"
}
/**
*
Provides
default
settings
for
service
notifications
.
*
By
convention
all
service
notifications
should
import
*
this
template
.
*/
template
Notification
"mail-service-notification"
{
command
=
"mail-service-notification"
states
= [
OK
,
Warning
,
Critical
,
Unknown
]
types
= [
Problem
,
Acknowledgement
,
Recovery
,
Custom
,
FlappingStart
,
FlappingEnd
,
DowntimeStart
,
DowntimeEnd
,
DowntimeRemoved
]
vars
+= {
//
notification_icingaweb2url
=
"https://www.example.com/icingaweb2"
//
notification_from
=
"Icinga 2 Service Monitoring <icinga@example.com>"
notification_logtosyslog
=
false
}
period
=
"24x7"
}
tests/stability-scripts/node_exporter_docker/Dockerfile
0 → 100644
浏览文件 @
e111ba2e
FROM
ubuntu:20.04
ENV
REFRESHED_AT 2021-12-05
WORKDIR
/root
ARG
DEBIAN_FRONTEND=noninteractive
COPY
node_exporter-1.3.0.linux-amd64.tar.gz /root/node_exporter-1.3.0.linux-amd64.tar.gz
RUN
set
-ex
;
\
tar
-xvf
node_exporter-1.3.0.linux-amd64.tar.gz
&&
\
mv
node_exporter-1.3.0.linux-amd64/node_exporter /usr/bin/node_exporter
&&
\
rm
-rf
node_exporter-1.3.0.linux-amd64 node_exporter-1.3.0.linux-amd64.tar.gz
COPY
entrypoint.sh /entrypoint.sh
ENV
NodeExporterHostname localhost
ENV
NodeExporterInterval 10
ENTRYPOINT
["/entrypoint.sh"]
tests/stability-scripts/node_exporter_docker/entrypoint.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
nohup
/usr/bin/node_exporter &
tail
-f
/dev/null
tests/stability-scripts/node_exporter_docker/node_exporter-1.3.0.linux-amd64.tar.gz
0 → 100644
浏览文件 @
e111ba2e
文件已添加
tests/stability-scripts/node_exporter_docker/run.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
docker run
-itd
--name
node_exporter_agent1
-h
node_exporter_agent1
-p
10000:9100 taosadapter_node_exporter:v1 /bin/bash
tests/stability-scripts/tcollector_docker/Dockerfile
0 → 100644
浏览文件 @
e111ba2e
FROM
ubuntu:20.04
ENV
REFRESHED_AT 2021-12-05
WORKDIR
/root
ARG
DEBIAN_FRONTEND=noninteractive
RUN
set
-ex
;
\
apt update
-y
--fix-missing
&&
\
apt-get
install
-y
--no-install-recommends
git python curl
&&
\
git clone git://github.com/OpenTSDB/tcollector.git
&&
\
curl
-o
get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
&&
\
python get-pip.py
&&
\
rm
-rf
/var/lib/apt/lists/
*
COPY
entrypoint.sh /entrypoint.sh
ENV
TcollectorHostname localhost
ENV
TaosadapterIp 127.0.0.1
ENV
TaosadapterPort 6047
ENV
TcollectorInterval 10
ENTRYPOINT
["/entrypoint.sh"]
tests/stability-scripts/tcollector_docker/collectd.conf
0 → 100644
浏览文件 @
e111ba2e
此差异已折叠。
点击以展开。
tests/stability-scripts/tcollector_docker/entrypoint.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
sed
-i
's/HOSTNAME/'
$HOSTNAME
'/g;s/TaosadapterIp/'
$TaosadapterIp
'/g;s/TaosadapterPort/'
$TaosadapterPort
'/g;s/CollectdInterval/'
$CollectdInterval
'/g;'
/etc/collectd/collectd.conf
/etc/init.d/collectd start
tail
-f
/dev/null
tests/stability-scripts/tcollector_docker/run.sh
0 → 100755
浏览文件 @
e111ba2e
#!/bin/bash
docker run
-itd
--name
collectd_agent1
-h
collectd_agent1
-e
CollectdHostname
=
collectd_agent1
-e
TaosadapterIp
=
172.26.10.86
-e
TaosadapterPort
=
6047
-e
CollectdInterval
=
1 taosadapter_collectd:v1 /bin/bash
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录