Repository navigation
Expand file tree
/
Copy pathdocker.html
More file actions
859 lines (810 loc) · 28.3 KB
/
Copy pathdocker.html
File metadata and controls
859 lines (810 loc) · 28.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
<!doctype html>
<html>
<head>
<meta name="keywords" content="Docker,Docker监控,Docker监控工具,Docker指标">
<meta name="description" content="Cloudinsight 是一款集监控与数据可视化,数据管理为一身的平台,可以进行基础组件的监控,自定义数据仪表盘的展示,对任意指标报警,是IT运维人员,以及开发人员的必备工具服务">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
<!-- Use title if it's in the page YAML frontmatter -->
<title>如何监控Docker|Docker监控|Docker性能指标|CloudInsight监控Docker</title>
<script type="text/javascript">
if (window.location.hostname === 'www.oneapm.com') {
var pathnameSegs = window.location.pathname.split("/docs/ci");
var realPathname = pathnameSegs[pathnameSegs.length - 1];
window.location.href = 'http://docs-ci.oneapm.com' + realPathname;
} else if (window.location.hostname !== 'docs-ci.oneapm.com') {
window.location.href = 'http://docs-ci.oneapm.com' + window.location.pathname;
}
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?dc7d70374ed3b2f6ce76527be8b9c93a";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- growingio -->
<script type='text/javascript'>
var _vds = _vds || [];
window._vds = _vds;
(function(){
_vds.push(['setAccountId', '9b345c730c9983fa']);
(function() {
var vds = document.createElement('script');
vds.type='text/javascript';
vds.async = true;
vds.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'dn-growing.qbox.me/vds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(vds, s);
})();
})();
</script>
<link href="/stylesheets/site.css" rel="stylesheet" />
<script src="/javascripts/jquery-2.2.1.js"></script>
<script src="/javascripts/bootstrap.min.js"></script>
<script src="/javascripts/all.js"></script>
<style media="screen">
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight {
color: #faf6e4;
background-color: #122b3b;
}
.highlight .gl {
color: #dee5e7;
background-color: #4e5d62;
}
.highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
color: #6c8b9f;
font-style: italic;
}
.highlight .cp {
color: #b2fd6d;
font-weight: bold;
font-style: italic;
}
.highlight .err {
color: #fefeec;
background-color: #cc0000;
}
.highlight .gr {
color: #fefeec;
background-color: #cc0000;
}
.highlight .k, .highlight .kd, .highlight .kv {
color: #f6dd62;
font-weight: bold;
}
.highlight .o, .highlight .ow {
color: #4df4ff;
}
.highlight .p, .highlight .pi {
color: #4df4ff;
}
.highlight .gd {
color: #cc0000;
}
.highlight .gi {
color: #b2fd6d;
}
.highlight .ge {
font-style: italic;
}
.highlight .gs {
font-weight: bold;
}
.highlight .gt {
color: #dee5e7;
background-color: #4e5d62;
}
.highlight .kc {
color: #f696db;
font-weight: bold;
}
.highlight .kn {
color: #ffb000;
font-weight: bold;
}
.highlight .kp {
color: #ffb000;
font-weight: bold;
}
.highlight .kr {
color: #ffb000;
font-weight: bold;
}
.highlight .gh {
color: #ffb000;
font-weight: bold;
}
.highlight .gu {
color: #ffb000;
font-weight: bold;
}
.highlight .kt {
color: #b2fd6d;
font-weight: bold;
}
.highlight .no {
color: #b2fd6d;
font-weight: bold;
}
.highlight .nc {
color: #b2fd6d;
font-weight: bold;
}
.highlight .nd {
color: #b2fd6d;
font-weight: bold;
}
.highlight .nn {
color: #b2fd6d;
font-weight: bold;
}
.highlight .bp {
color: #b2fd6d;
font-weight: bold;
}
.highlight .ne {
color: #b2fd6d;
font-weight: bold;
}
.highlight .nl {
color: #ffb000;
font-weight: bold;
}
.highlight .nt {
color: #ffb000;
font-weight: bold;
}
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
color: #f696db;
font-weight: bold;
}
.highlight .ld {
color: #f696db;
font-weight: bold;
}
.highlight .ss {
color: #f696db;
font-weight: bold;
}
.highlight .s, .highlight .sb, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .sr, .highlight .s1 {
color: #fff0a6;
font-weight: bold;
}
.highlight .se {
color: #4df4ff;
font-weight: bold;
}
.highlight .sc {
color: #4df4ff;
font-weight: bold;
}
.highlight .si {
color: #4df4ff;
font-weight: bold;
}
.highlight .nb {
font-weight: bold;
}
.highlight .ni {
color: #999999;
font-weight: bold;
}
.highlight .w {
color: #BBBBBB;
}
.highlight .nf {
color: #a8e1fe;
}
.highlight .py {
color: #a8e1fe;
}
.highlight .na {
color: #a8e1fe;
}
.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi {
color: #a8e1fe;
font-weight: bold;
}
</style>
</head>
<body class="page-services_example services_example_docker">
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PJ6GBS"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PJ6GBS');</script>
<!-- End Google Tag Manager -->
<header class="main-header clearfix">
<div class="main-navblock col-lg-10 col-md-10 col-sm-10 col-xs-10 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 col-xs-offset-1"><div>
<a href="../index.html" class="logo-container">
<div class="oneapm-logo"></div>
</a>
</div>
<!--<a href="#" class="burger-wrapper">-->
<!--<div class="burger"></div>-->
<!--</a>-->
<!--<div class="nav-container">-->
<!--<ul class="nav-list">-->
<!--<li>-->
<!--<a href="/quick-start/">快速入门</a>-->
<!--</li>-->
<!--<li>-->
<!--<a href="/agent/">安装配置</a>-->
<!--</li>-->
<!--<li>-->
<!--<a href="/platform/">操作指南</a>-->
<!--</li>-->
<!--<li>-->
<!--<a href="/best-practise/">实践案例</a>-->
<!--</li>-->
<!--<li>-->
<!--<a href="/qa/">常见问题</a>-->
<!--</li>-->
<!--</ul>-->
<!--<ul class="login-list">-->
<!--<li>-->
<!--<a href="http://user.oneapm.com/pages/v2/login_ci" class="btn outline-dark" id="loginIn">登录</a>-->
<!--</li>-->
<!--<li>-->
<!--<a href="https://cloud.oneapm.com/user/register" class="btn inside-yellow" id="signUp">注册</a>-->
<!--</li>-->
<!--</ul>-->
<!--</div>-->
</div>
</header>
<div class="flagInfo clearfix">
<div class="flag-left"></div>
<div class="flag-right">Cloudinsight Agent 在 4.7.0 版本,将 Agent 名称从 oneapm-ci-agent 更换至 cloudinsight-agent。若您在使用过程中,出现无法正常工作的情况,请加入售后群:433349863</div>
<span class="cl">X</span>
</div>
<script type="text/javascript" src="//d.oneapm.com/sso/nav.js"></script>
<div class="container page-container">
<div class="row">
<div class="col-lg-3 page-sidebar hidden-ssm hidden-xs">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" href="/agent/">
Agent 安装与设置
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<ul>
<li><a href="/agent/redhat.html">RedHat / CentOS / Fedora 安装</a></li>
<li><a href="/agent/ubuntu.html">Debian / Ubuntu 安装</a></li>
<li><a href="/agent/amazon.html">Amazon Linux 安装</a></li>
<li><a href="/agent/windows.html">Windows 安装</a></li>
<li><a href="/agent/docker.html">Docker 安装</a></li>
<li><a href="/agent/chef.html">Chef 安装</a></li>
<li><a href="/agent/inner.html">内网环境安装探针</a></li>
<li><a href="/agent/agent-instrument.html">Agent 操作与配置</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" href="/api/">
API与SDK
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<ul>
<li><a href="/api/sdk.html">SDK</a></li>
<li><a href="/api/python.html">Python</a></li>
<li><a href="/api/nodejs.html">Node.js</a></li>
<li><a href="/api/ruby.html">Ruby</a></li>
<li><a href="/api/java.html">Java</a></li>
<li><a href="/api/dotnet.html">DotNET</a></li>
<li><a href="/api/php.html">PHP</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingThree">
<h4 class="panel-title">
<a class="collapsed" href="/cloud-integration/">
云厂商接入
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
<ul>
<li><a href="/cloud-integration/aliyun.html">阿里云</a></li>
<li><a href="/cloud-integration/ucloud.html">UCloud</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingFour">
<h4 class="panel-title">
<a class="collapsed" href="/services/">
平台服务基础配置
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
<div class="panel-body">
<ul>
<li><a href="/services/status.html">状态页监控</a></li>
<li><a href="/services/jmx.html">JMX 远程监控</a></li>
<li><a href="/services/authorize.html">数据库授权监控</a></li>
<li><a href="/services/database.html">数据库配置</a></li>
<li><a href="/services/agent-check.html">自定义 AgentCheck</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingFive">
<h4 class="panel-title">
<a class="collapsed" href="/services_example/">
平台服务配置示例
</a>
</h4>
</div>
<div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive">
<div class="panel-body">
<ul>
<li><a href="/services_example/activemq.html">artivemq</a></li>
<li><a href="/services_example/apache.html">apache</a></li>
<li><a href="/services_example/bearychat.html">bearychat</a></li>
<li><a href="/services_example/cacti.html">cacti</a></li>
<li><a href="/services_example/cassandra.html">cassandra</a></li>
<li><a href="/services_example/couchbase.html">couchbase</a></li>
<li><a href="/services_example/couchdb.html">couchdb</a></li>
<li><a href="/services_example/docker.html">docker</a></li>
<li><a href="/services_example/elasticsearch.html">elasticsearch</a></li>
<li><a href="/services_example/event_viewer.html">event_viewer</a></li>
<li><a href="/services_example/gearman.html">gearman</a></li>
<li><a href="/services_example/gunicorn.html">gunicorn</a></li>
<li><a href="/services_example/haproxy.html">haproxy</a></li>
<li><a href="/services_example/hdfs.html">hdfs</a></li>
<li><a href="/services_example/http.html">http</a></li>
<li><a href="/services_example/iis.html">iis</a></li>
<li><a href="/services_example/jianliao.html">jianliao</a></li>
<li><a href="/services_example/kafka.html">kafka</a></li>
<li><a href="/services_example/memcached.html">memcached</a></li>
<li><a href="/services_example/mesos.html">mesos</a></li>
<li><a href="/services_example/mongodb.html">mongodb</a></li>
<li><a href="/services_example/mysql.html">mysql</a></li>
<li><a href="/services_example/nagios.html">nagios</a></li>
<li><a href="/services_example/network.html">network</a></li>
<li><a href="/services_example/nginx.html">nginx</a></li>
<li><a href="/services_example/openstack.html">openstack</a></li>
<li><a href="/services_example/php-fpm.html">php-fpm</a></li>
<li><a href="/services_example/postgresql.html">postgresql</a></li>
<li><a href="/services_example/process.html">process</a></li>
<li><a href="/services_example/pubu.html">pubu</a></li>
<li><a href="/services_example/rabbitmq.html">rabbitmq</a></li>
<li><a href="/services_example/redis.html">redis</a></li>
<li><a href="/services_example/snmp.html">snmp</a></li>
<li><a href="/services_example/solr.html">solr</a></li>
<li><a href="/services_example/sqlserver.html">sqlserver</a></li>
<li><a href="/services_example/ssh.html">ssh</a></li>
<li><a href="/services_example/supervisord.html">supervisord</a></li>
<li><a href="/services_example/tcp.html">tcp</a></li>
<li><a href="/services_example/tomcat.html">tomcat</a></li>
<li><a href="/services_example/wmi.html">wmi</a></li>
<li><a href="/services_example/zookeeper.html">zookeeper</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-9 page-body">
<div class="body-box">
<h1>Docker</h1>
<p>Cloudinsight 支持监控 Docker 容器情况,不仅监控容器使用 cpu、network、io、disk 等做通用指标,还因为 Doker 通过 cgroup 来做资源限制,Agent 通过在宿主机本身查看对应容器的 cgroup stats 来监控容器的信息,状态等。</p>
<p>通过配置文件安装和直接一键安装等区别是:直接一键安装会生成一个 Cloudinsight 容器,所有的配置文件会在一个容器内,其它监控到的数据是相同的。</p>
<p><img src="/images/service_example/docker.png" /></p>
<hr>
<h2>性能指标</h2>
<p>Cloudinsight 采集 Docker 以下性能指标:</p>
<table><thead>
<tr>
<th>指标</th>
<th>单位</th>
<th>具体含义</th>
</tr>
</thead><tbody>
<tr>
<td>docker.container.size_rootfs</td>
<td>bytes</td>
<td>容器中所有文件的总大小</td>
</tr>
<tr>
<td>docker.container.size_rw</td>
<td>bytes</td>
<td>容器中被正在运行的进程创建或更改的所有文件的总大小</td>
</tr>
<tr>
<td>docker.containers.running</td>
<td></td>
<td>这个主机上正在运行的容器数量</td>
</tr>
<tr>
<td>docker.containers.stopped</td>
<td></td>
<td>这个主机上已停止的容器数量</td>
</tr>
<tr>
<td>docker.cpu.system</td>
<td>fractions</td>
<td>CPU 中代表此容器的进程执行系统调用(executing system calls)的时间占比</td>
</tr>
<tr>
<td>docker.cpu.user</td>
<td>fractions</td>
<td>CPU 直接控制此容器的进程的时间分数(fraction)</td>
</tr>
<tr>
<td>docker.image.size</td>
<td>bytes</td>
<td>磁盘上镜像的所有图层(layers)的大小</td>
</tr>
<tr>
<td>docker.image.virtual_size</td>
<td>bytes</td>
<td>磁盘上镜像的所有图层(layers)的大小</td>
</tr>
<tr>
<td>docker.images.available</td>
<td></td>
<td>顶级(top-level)镜像的数量</td>
</tr>
<tr>
<td>docker.images.intermediate</td>
<td></td>
<td>中间镜像的数量,它们是构成其他镜像的中间图层</td>
</tr>
<tr>
<td>docker.io.read_bytes</td>
<td>bytes/second</td>
<td>容器上的进程每秒从磁盘读取的字节数</td>
</tr>
<tr>
<td>docker.io.write_bytes</td>
<td>bytes/second</td>
<td>容器上的进程每秒向磁盘写入的字节数</td>
</tr>
<tr>
<td>docker.mem.cache</td>
<td>bytes</td>
<td>正用于缓存磁盘数据的存储器的量 (e.g. 可以精确地与块设备上的块相关联的存储器内容)</td>
</tr>
<tr>
<td>docker.mem.in_use</td>
<td>fractions</td>
<td>已使用内存占可用内存的比例</td>
</tr>
<tr>
<td>docker.mem.limit</td>
<td>bytes</td>
<td>容器的内存限制(如果设置)</td>
</tr>
<tr>
<td>docker.mem.rss</td>
<td>samples/second</td>
<td>除缓存以外的内存使用量,用于堆栈,堆等</td>
</tr>
<tr>
<td>docker.mem.swap</td>
<td>bytes</td>
<td>容器当前已使用的交换(swap)量</td>
</tr>
<tr>
<td>docker.mem.sw_in_use</td>
<td>fractions</td>
<td>已使用的 swap + memory 与可使用的 swap + memory 的比例</td>
</tr>
<tr>
<td>docker.mem.sw_limit</td>
<td>bytes</td>
<td>容器的 swap + memory 限制</td>
</tr>
<tr>
<td>docker.net.bytes_rcvd</td>
<td>bytes/second</td>
<td>每秒从网络接收的字节数</td>
</tr>
<tr>
<td>docker.net.bytes_sent</td>
<td>bytes/second</td>
<td>每秒向网络发送的字节数</td>
</tr>
</tbody></table>
<p>具体参数含义参考 <a href="https://docs.docker.com/engine/admin/runmetrics/">Docker Runtime metrics</a></p>
<hr>
<h2>配置 Docker 监控</h2>
<h3>在 Docker 组中引入 Agent</h3>
<p>首先确保 Docker 已正常运行在服务器上,并引入 Agent 至 Docker 组中。</p>
<pre class="highlight plaintext"><code>usermod -a -G docker cloudinsight-agent
</code></pre>
<h3>编辑配置文件</h3>
<p>编辑配置文件 <a href="/services/">conf.d/docker_daemon.yaml</a>,使 Cloudinsight Agent 可以与 Docker 通信。</p>
<pre class="highlight yaml"><code><span class="s">init_config</span><span class="pi">:</span>
<span class="s">instances</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">url</span><span class="pi">:</span> <span class="s2">"</span><span class="s">unix://var/run/docker.sock"</span>
</code></pre>
<h3>重启 Agent</h3>
<p>重启 Cloudinsight Agent,使配置生效。</p>
<p>您也可以通过查看 Agent Info 信息,来验证配置是否成功。当出现以下信息,则代表安装成功。</p>
<pre class="highlight plaintext"><code>Checks
======
[...]
docker_daemon
-------------
- instance #0 [OK]
- Collected 8 metrics & 0 events
</code></pre>
<p>有关 Agent Info 信息的查看,请访问帮助中心,查看 <a href="/quick-start/instrument.html">Cloudinsight Agent 常用操作</a>。</p>
<hr>
<h2>默认标签</h2>
<p>Cloudinsight 采集 Docker 以下默认主机标签:</p>
<table><thead>
<tr>
<th>标签种类</th>
<th>标签含义</th>
</tr>
</thead><tbody>
<tr>
<td>container_name</td>
<td>容器的名称(例如 “boring_euclid")</td>
</tr>
<tr>
<td>image_name</td>
<td>镜像(image)的名称(例如 "nginx")</td>
</tr>
<tr>
<td>image_tag</td>
<td>镜像(image)的标签(例如 "latest")</td>
</tr>
<tr>
<td>docker_image</td>
<td>镜像(image)名的全称(例如 "nginx:latest")</td>
</tr>
</tbody></table>
<hr>
<h2>常见问题</h2>
<ul>
<li><a href="http://docs-ci.oneapm.com/qa/docker_daemon.html">Unable to connect to socket. cloudinsight-agent user must be part of the ‘docker’ group</a>。</li>
<li>若要在同一个服务器上监控多个相同的平台服务,参考<a href="http://docs-ci.oneapm.com/qa/more.html">如何监控多个平台服务</a>。</li>
<li>有任何关于产品的使用疑惑,参考<a href="http://docs-ci.oneapm.com/qa/">常见问题</a>。</li>
</ul>
<hr style="margin-top: 50px;" />
<div class="alert alert-warning" style="text-align:center; margin: 40px 0px;">
<p style="font-size: 16px;">
如果您对 Cloudinsight 感兴趣,可以选择试用我们的产品,只需要点击下面的按钮免费注册即可。
</p>
<br />
<p>
<a href="https://cloud.oneapm.com/user/register?ref=https://cloud.oneapm.com&from=ci-docs" class="btn btn-info btn-lg" target="_blank">
立即注册 Cloudinsight
</a>
</p>
</div>
<hr />
<!-- 多说评论框 start -->
<div class="ds-thread"
id="ds-thread"
data-thread-key=""
data-title=""
data-url="http://docs-ci.oneapm.com/services_example/docker.html"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var titleTag = document.getElementsByTagName("h1")[0];
if (titleTag) {
title = document.getElementsByTagName("h1")[0].innerText;
} else {
title = "如何监控Docker|Docker监控|Docker性能指标|CloudInsight监控Docker";
}
var duoshuoTag = document.getElementById('ds-thread');
duoshuoTag.setAttribute('data-thread-key', title.replace(/\s/g, ''));
duoshuoTag.setAttribute('data-title', title);
var duoshuoQuery = {short_name:"docs-ci"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
<div class="return"></div>
</div>
<div class="footer-in">
<div class="footer-nav-block">
<div class="container">
<div class="footer-nav">
<div class="footer-nav-col">
<ul class="footer-nav-list">
<li>
<a href="/quick-start/">文档</a>
</li>
<li>
<a href="/quick-start/">快速入门</a>
</li>
<li>
<a href="/agent/">安装配置</a>
</li>
<li>
<a href="/platform/">操作指南</a>
</li>
<li>
<a href="/best-practise/">实践案例</a>
</li>
<li>
<a href="/qa/">常见问题</a>
</li>
</ul>
</div>
<div class="footer-nav-col">
<ul class="footer-nav-list">
<li>
<a href="http://cloudinsight.oneapm.com/product/product.html">产品</a>
</li>
<li>
<a href="http://cloudinsight.oneapm.com/product/product.html">基础组件监控</a>
</li>
<li>
<a href="http://cloudinsight.oneapm.com/product/api_sdk.html">API 与 SDK</a>
</li>
<li>
<a href="http://cloudinsight.oneapm.com/product/cialert.html">异常数据告警</a>
</li>
<li>
<a href="http://cloudinsight.oneapm.com/price.html">报价</a>
</li>
</ul>
</div>
<div class="footer-nav-col">
<ul class="footer-nav-list">
<li><a href="http://cloudinsight.oneapm.com/about/group.html">关于</a></li>
<li><a href="http://cloudinsight.oneapm.com/about/group.html">团队介绍</a></li>
<li><a href="http://cloudinsight.oneapm.com/about/cooperation.html">合作伙伴</a></li>
</ul>
</div>
</div>
<div class="footer-support">
<ul class="footer-support-list">
<li><img src="/images/home/support.svg"></li>
<li class="support-title">技术支持</li>
<li class="support-mail">support@oneapm.com</li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright-block">
<div class="container">
<div class="copyright-link">
<div class="socialLink">
<a href="https://github.com/cloudinsight/cloudinsight.github.io" class="social-btn github" target="_blank">
<img src="/images/home/github.svg">
<p class="hidden-xs hidden-xxs">Github</p>
</a>
</div>
<div class="socialLink">
<a href="#" class="social-btn qr">
<img src="/images/home/wechat.svg">
<p class="hidden-xs hidden-xxs">微信</p>
<div class="QRcode">
<img src="/images/home/wechatQR.svg">
</div>
</a>
</div>
<div class="socialLink">
<a href="http://my.oschina.net/cloudinsight/blog" class="social-btn" target="_blank">
<img src="/images/home/oschina.svg">
<p class="hidden-xs hidden-xxs">开源中国</p>
</a>
</div>
<div class="socialLink">
<a href="http://www.weibo.com/cloudinsight" class="social-btn" target="_blank">
<img src="/images/home/weibo.svg">
<p class="hidden-xs hidden-xxs">微博</p>
</a>
</div>
</div>
<div class="copyright-text">
<a href="http://cloudinsight.oneapm.com/">
<img src="/images/home/cilogomulti_btn.svg" class="footer-logo">
</a>
<p class="copyright">
Copyright © 2008-
<span id="cr-end-time"></span>
北京蓝海讯通科技股份有限公司
<br>
<a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备14028342号-2</a>
京公网安备 11010802016192
<br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
$(".navbar-default .navbar-nav .guide").addClass("active");
(function () {
$('.panel-default').mouseenter(function () {
if(!$(this).hasClass('active')){
$(this).children().addClass('in');
}
})
$('.panel-default').mouseleave(function () {
if(!$(this).hasClass('active')) {
$(this).children().removeClass('in');
}
})
var key=window.location.pathname;
var lastindex;
var keyInfo;
if(key.indexOf('quick-start') !== -1){
keyInfo="'"+key+"'";
$('ol').eq(0).children().map(function () {
$(this).css({
'cursor':'pointer',
'color':'#005FA8'
})
})
$('ol').eq(0).children().eq(0).click(function () {
$('.page-body').animate({ scrollTop: 300 }, 500)
})
$('ol').eq(0).children().eq(1).click(function () {
$('.page-body').animate({ scrollTop: 1830 }, 500)
})
$('ol').eq(0).children().eq(2).click(function () {
$('.page-body').animate({ scrollTop: 4202 }, 500)
})
$('ol').eq(0).children().eq(3).click(function () {
$('.page-body').animate({ scrollTop: 5942 }, 500)
})
$('ol').eq(0).children().eq(4).click(function () {
$('.page-body').animate({ scrollTop: 10066 }, 500)
})
}else if(key.indexOf('/',1) !== -1){
lastindex=key.indexOf('/',1);
keyInfo="'"+key.substring(0,lastindex+1)+"'";
}else {
lastindex=key.indexOf('.',1);
keyInfo="'"+key.substring(0,lastindex+1)+"html'";
}
var panelHead= $(".panel-default a[href="+keyInfo+"]").parent().parent();
panelHead.siblings().addClass('in');
panelHead.parent().siblings('div').map(function () {
$(this).removeClass('active');
});
panelHead.parent().addClass('active');
})();
});
</script>
</body>
</html>