简体   繁体   English

如何访问在 aws multiContainer docker 中运行的 prometheus 仪表板?

[英]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/tcp0.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还要确保在安全组中允许端口809090

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.

相关问题 在AWS Multicontainer Docker环境中部署到特定容器 - Deploying to specific container in AWS multicontainer docker environment 多容器 docker (AWS) 链接是单向的? - Multicontainer docker (AWS) link is one-way? 在 AWS 上使用 EFS 的 Prometheus Docker - 无写入权限 - Prometheus Docker on AWS with EFS - No write access 如何在Docker容器中运行的Prometheus中保存数据? - How to persist data in Prometheus running in a Docker container? AWS docker multicontainer应用程序上的哪个postgres连接字符串? - What postgres connection string on AWS docker multicontainer app? AWS ElasticBeanstalk多容器-docker运行“ --pid = host”选项 - AWS ElasticBeanstalk multicontainer - docker run “--pid=host” option 适用于Multicontainer Docker配置的AWS Elastic beanstalk中的版本错误 - Version error in AWS Elastic beanstalk for Multicontainer Docker Configuration 如何从本地浏览器访问在 jenkins docker 实例中运行的 AWS EC2 docker tomcat 实例 - How to Access AWS EC2 docker tomcat instance running inside jenkins docker instance from my local browser kibana在docker上运行:如何保存仪表板? - kibana running on docker: how to save dashboard? 带有Nginx的ElasticBeanstalk MultiContainer泊坞窗 - ElasticBeanstalk MultiContainer docker with nginx
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM