如何将基础设施添加到Heroku应用程序

发布于 2025-01-24 22:44:03 字数 358 浏览 1 评论 0原文

我试图让新的遗物基础架构代理监视我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷月断魂刀 2025-01-31 22:44:03

我的理解是,由于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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文