[英]How to access my prometheus dashboard which are running in aws multiContainer docker?
I have running prometheus and grafana images on aws docker which are running in respective 0.0.0.0:9090->9090/tcp & 0.0.0.0:3000->3000/tcp ports in docker but i don't know how to access this prometheus and grafana dashboard using endpoints.我在 aws docker 上运行 prometheus 和 grafana 图像,它们分别在0.0.0.0:9090->9090/tcp和0.0.0.0:3000->3000/tcp端口中运行,但我不知道如何访问这个 prometheus和使用端点的 grafana 仪表板。 I tried to access using (MachineIP:9090) but it's not accessible.我尝试使用 (MachineIP:9090) 访问,但无法访问。 Can anyone have idea about that?任何人都可以有这个想法吗?
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "php-app",
"host": {
"sourcePath": "/var/app/current/php-app"
}
},
{
"name": "nginx-proxy-conf",
"host": {
"sourcePath": "/var/app/current/proxy/conf.d"
}
}
],
"containerDefinitions": [
{
"name": "php-app",
"image": "php:fpm",
"essential": true,
"memory": 128,
"mountPoints": [
{
"sourceVolume": "php-app",
"containerPath": "/var/www/html",
"readOnly": true
},
{
"sourceVolume": "awseb-logs-php-app",
"containerPath": "/var/log/sample-app"
}
]
},
{
"name": "nginx-proxy",
"image": "nginx",
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80
}
],
"links": [
"php-app"
],
"mountPoints": [
{
"sourceVolume": "php-app",
"containerPath": "/var/www/html",
"readOnly": true
},
{
"sourceVolume": "awseb-logs-nginx-proxy",
"containerPath": "/var/log/nginx"
},
{
"sourceVolume": "nginx-proxy-conf",
"containerPath": "/etc/nginx/conf.d",
"readOnly": true
}
]
}
]
}
You need do a port mapping between the elastic beans talk load balancer and your docker instance.您需要在弹性 bean 会话负载均衡器和您的 docker 实例之间进行端口映射。
Also make sure to allow port 80
and 9090
in the security group还要确保在安全组中允许端口80
和9090
Reference: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html参考: https : //docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.