StackDriver:从外部GCP和AWS收集指标 [英] StackDriver: Collecting metrics from outside GCP and AWS

查看:97
本文介绍了StackDriver:从外部GCP和AWS收集指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是关于Google Cloud中的StackDriver.我已经尝试了许多小时,以便从GCP和AWS外部配置服务器以收集指标,但是我无法使其正常工作.

My question is about StackDriver from Google Cloud. I've tried for a lot of hours to configure a server from outside of GCP and AWS to collect metrics, and I'm not able to make it work.

StackDriver能够从外部收集指标,还是我浪费时间?

StackDriver is able to collect metrics from outside or I'm loosing my time?

如果有能力,有人知道一本好手册吗?

If is able, someone knows a good manual?

谢谢!!!和问候!!!

Thanks!!! and greetings!!!

推荐答案

Adam是正确的,因为Stackdriver不(在撰写本文时)支持GCP/AWS之外的代理指标收集.因此,您尝试做的事情不受官方支持.

Adam is correct that Stackdriver doesn't (at time of writing) support the agent metric collection outside of GCP/AWS. So what you're trying to do is not officially supported.

但是,Stackdriver产品由API组成,因此您可以从技术上从外部GCP和AWS的指标中进行收集.从技术上讲这是可能的,但是这样做的客户端工具和文档不存在,这将使其具有很大的挑战性.

However, Stackdriver products are composed of APIs so you technically can collect from metrics from outside GCP and AWS. It's technically possible, but the client side tooling and docs to do so just don't exist, which will make it pretty challenging.

通常,AWS文档最接近您想要查看的文档,因为就Stackdriver而言,AWS是公共互联网.

In general, the AWS docs are the closest to what you'll want to look at, since AWS is the public internet as far as Stackdriver is concerned.

对于身份验证,您将要使用服务帐户,类似于AWS设置.

For authentication, you'll want to use service accounts, similar to the AWS setup.

如果您只有几个指标,则可以始终编写自定义指标使用客户端库之一.如果您只有几个要编写的指标,那可能是最简单的事情.

If you just have a few metrics, you could always write custom metrics using one of the client libraries. That's probably the simplest thing to do if you just have a few metrics you want to write.

文档指示您安装的收集的代理程序只是从各种日志中收集指标并将其发送到API.您可以在 Github 上进行检查.但是,由于当前仅支持GCP和AWS,因此您将不得不进入必须了解代理代码并自行对其进行修改以使其在GCP/AWS之外运行的领域.

The collectd agent that the docs instruct you to install just gather up metrics from various logs and sends them to the API. You can check it out on Github. But since currently only GCP and AWS are supported, you are venturing into territory where you'll have to understand the agent's code and modify it yourself to get it working outside GCP/AWS.

将来我会一直关注Stackdriver,以寻求在此方面的改进.

I would keep an eye on Stackdriver in the future for improvements in this space.

这篇关于StackDriver:从外部GCP和AWS收集指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆