humpback / humpback-web

Docker management website
Apache License 2.0
68 stars 40 forks source link

一些问题反馈或者建议 #6

Open station19 opened 7 years ago

station19 commented 7 years ago
  1. 在私有镜像里面的dockerfile编写的时候 由于内容过多,导致导入或者编写不完整(不能超过2000字符),如图,悲桑的故事 ,# 能否取消这个限制 ? image

2.在 group 组里,在设备上 使用 pull docker image 的时候 由于镜像名称太长,不能添加..(我后来重新打了tag 改名了~~(>_<)~~) image

目前使用中主要是这2个问题......

请问这个有docker容器监控报警吗?如果有,怎么做?

还有 https://github.com/humpback/humpback-web/issues/5这个问题我已经解决了,重新编译了所有的 docker包,感谢耐心回答。。。

instance-oom commented 7 years ago

容器的话目前只有实时监控,没有报警

station19 commented 7 years ago

instance-oom commented 7 years ago

对了,昨天那个Tty的问题可以使用 1.2.5 版本的 humpback-agent,已推送到docker仓库

station19 commented 7 years ago

好的, 还有问题,看图 ,这里 我明明已经 映射过 路径(如nginx配置路径,PHP配置路径,web项目存放路径等),但是这里却没显示,不过不影响使用,只是一个显示问题

image

instance-oom commented 7 years ago

能看下这个请求返回的结果吗? http://${ip}:8500/v1/containers/nginx-php56?originaldata=false

instance-oom commented 7 years ago

额,要不你在浏览器控制台里面看一下这个请求

station19 commented 7 years ago

{ "Id": "62bce604e936480fe1c76a01e7904834f19a5282592635e8e40e571a61e89e3b", "Created": "2017-11-03T07:43:21.036115432Z", "Path": "/usr/bin/supervisord", "Args": [], "State": { "Status": "", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 21579, "ExitCode": 0, "Error": "", "StartedAt": "2017-11-03T07:52:44.212494532Z", "FinishedAt": "2017-11-03T07:52:43.884211695Z" }, "Image": "10d70fed5c8fd99619371155c42e7a682c62389f8c26f9beb73b3d712e5092ef", "ResolvConfPath": "/var/lib/docker/containers/62bce604e936480fe1c76a01e7904834f19a5282592635e8e40e571a61e89e3b/resolv.conf", "HostnamePath": "/var/lib/docker/containers/62bce604e936480fe1c76a01e7904834f19a5282592635e8e40e571a61e89e3b/hostname", "HostsPath": "/var/lib/docker/containers/62bce604e936480fe1c76a01e7904834f19a5282592635e8e40e571a61e89e3b/hosts", "LogPath": "/var/lib/docker/containers/62bce604e936480fe1c76a01e7904834f19a5282592635e8e40e571a61e89e3b/62bce604e936480fe1c76a01e7904834f19a5282592635e8e40e571a61e89e3b-json.log", "Name": "/nginx-php56", "RestartCount": 0, "Driver": "devicemapper", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [ "/abc/docker/nginx/web/a1/:/data/docker/website/a1/", "/abc/docker/nginx/conf.d/:/etc/nginx/conf.d/" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "bridge", "PortBindings": { "80/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8090" } ] }, "RestartPolicy": { "Name": "no", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": null, "CapAdd": null, "CapDrop": null, "Dns": [], "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IpcMode": "", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": true, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 0, "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DeviceCgroupRules": null, "DiskQuota": 0, "KernelMemory": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": false, "PidsLimit": 0, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0 }, "GraphDriver": { "Data": null, "Name": "" }, "Mounts": null, "Config": { "Hostname": "nginx-php56", "Domainname": "", "User": "", "AttachStdin": true, "AttachStdout": true, "AttachStderr": true, "ExposedPorts": { "22/tcp": {}, "80/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": null, "Image": "192.168.1.11/centos68-lnp", "Volumes": { "/data/docker/website/a1/": {}, "/etc/nginx/conf.d/": {} }, "WorkingDir": "", "Entrypoint": [ "/usr/bin/supervisord" ], "OnBuild": null, "Labels": { "build-date": "2016-06-02", "license": "GPLv2", "name": "CentOS Base Image", "vendor": "CentOS" } }, "NetworkSettings": { "Bridge": "", "SandboxID": "", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": { "22/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "32769" } ], "80/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8090" } ] }, "SandboxKey": "/var/run/docker/netns/62bce604e936", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "d18db4ef27031807da5af948731cc415bed5eb47086dc6fec737aae1f7db61df", "Gateway": "172.17.42.1", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "172.17.0.23", "IPPrefixLen": 16, "IPv6Gateway": "", "MacAddress": "02:42:ac:11:00:17", "Networks": null } }

station19 commented 7 years ago

http://192.168.1.10:8500/v1/containers/nginx-php56?originaldata=true 这是我请求

192.168.1.10 是使用容器的机器 image

instance-oom commented 7 years ago

你的docker版本是什么呢?这个问题可能要查一下才知道

station19 commented 7 years ago

我所有的docker 都是

Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d/1.7.1 OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit (server): 786b29d/1.7.1 OS/Arch (server): linux/amd64

station19 commented 7 years ago

humpbacks/humpback-agent 1.2.4
humpbacks/humpback-web 1.0.1

image

instance-oom commented 7 years ago

好的,我看一下,估计是docker版本不同导致的接口有点不一致

station19 commented 7 years ago

好的。。。 感谢。。。可能是接口获取数据的时候没拿到

因为我们公司大部分机器是 6.8 如果升级更高版本的docker 要升级内核,然而 其他服务就不能保证稳定性了,so就全部用的 docker 1.7版本

instance-oom commented 7 years ago

看了一下,应该就是docker版本的原因,这个我尝试后面处理一下

wyaopeng commented 6 years ago

docker web 用的是外网IP做的NAT,然后,添加机的时候用内网IP,就监控不了 服务 如: 1.docker web 内网ip 192.168.1.1 Nginx 反向代理 docker.xxx.com,然后访问docker.xxx.com通过外网管理 docker 容器, 2.安装docker agent 内网IP 192.168.1.2,通过docker.xxx.com 添加 agent 获取不到信息,检查发现 需要浏览器客户端能直接访问dokcer agent(感觉像类似ajax的请求), 这样的话,云环境用起来 就比较麻烦了,这个能不能修改下?

hstarorg commented 5 years ago

了解你的需求了,实际上是想启用服务端代理访问。准备纳入更新计划。