如何将基础设施添加到Heroku应用程序
我试图让新的遗物基础架构代理监视我的Heroku应用程序。
文档说要运行以下内容:
docker run \
-d \
--name newrelic-infra \
--network=host \
--cap-add=SYS_PTRACE \
--privileged \
--pid=host \
-v "/:/host:ro" \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-e NRIA_LICENSE_KEY=[Key]\
newrelic/infrastructure:latest
但是我实际运行或放置在哪里,以便将其运行在我的Heroku应用程序上?
I am attempting to have the New Relic Infrastructure Agent monitor my heroku applications.
The documentation says to run the following:
docker run \
-d \
--name newrelic-infra \
--network=host \
--cap-add=SYS_PTRACE \
--privileged \
--pid=host \
-v "/:/host:ro" \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-e NRIA_LICENSE_KEY=[Key]\
newrelic/infrastructure:latest
But where do I actually run or put this so it runs it on my Heroku apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的理解是,由于Heroku的建筑,这是不可能的。
我有兴趣尝试新的遗物Redis集成。但是,我们在Heroku上使用“ Heroku Data进行REDIS”服务。这意味着Redis在Heroku内部作为托管服务运行,并且只有Heroku才能安装在同一家服务器上运行的服务。
换句话说:新的遗物基础架构代理人旨在在与正在监视的服务的服务器上运行(在我的情况下为Redis)。除非您直接控制服务器,否则这是不可能的,并且在像Heroku的Redis这样的托管服务上,无法安装这样的东西。
My understanding is that it's impossible because of Heroku's architecture.
I was interested in trying out the New Relic Redis integration. However we use the "heroku data for redis" service on Heroku. This means that Redis runs as a managed service within Heroku, and that only Heroku can install services that run on that same server.
In other words: The New Relic infrastructure agent is designed to run on the same server as the service being monitored (Redis, in my case). This is not possible unless you directly control the server, and on a managed service like Heroku's Redis, there's no way to install such a thing.