如何访问在AWS MultiContainer泊坞窗中运行的Prometheus仪表板?

问题描述 投票:0回答:2

我在aws docker上运行了prometheus和grafana映像,它们分别在docker中的0.0.0.0:9090-> 9090 / tcp0.0.0.0:3000-> 3000 / tcp端口中运行,但是我不知道如何使用端点访问此Prometheus和grafana仪表板。我尝试使用(MachineIP:9090)进行访问,但无法访问。谁能对此有所想法?

{
  "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
        }
      ]
    }
  ]
}
docker amazon-elastic-beanstalk prometheus
2个回答
0
投票

您需要在Elastic bean Talk负载均衡器和docker实例之间进行端口映射。


-5
投票

click here

感谢您对堆栈溢出做出贡献!

请务必回答问题。提供详细信息并分享您的研究!但是请避免...

寻求帮助,说明或回答其他答案。根据意见发表声明;用参考或个人经验来备份它们。要了解更多信息,请参见我们撰写出色答案的提示。

© www.soinside.com 2019 - 2024. All rights reserved.