StackDriver: Collecting metrics from outside GCP and AWS

我与影子孤独终老i 提交于 2019-12-10 14:52:34

问题


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 is able to collect metrics from outside or I'm loosing my time?

If is able, someone knows a good manual?

Thanks!!! and greetings!!!


回答1:


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.

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.

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.

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.

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.

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




回答2:


This is available now. Google had some agents they provided for doing just this from different environments.

However, it looks like those are now deprecated and have been replaced with a third party (a Google Partner), from Google Docs: https://cloud.google.com/stackdriver/docs/deprecations/third-party-apps

It looks like there is no license fee to use (free in Marketplace) just have to pay for the data usage coming into Stackdriver.




回答3:


Based on the StackDriver agent documentation page it looks like this is not an option.

It works with AWS but you need to link your AWS account with their accounts.

Edit: I had an assumption in terms of accessing StackDriver backend from outsite authorized cloud providers. It wasn't accurate.



来源:https://stackoverflow.com/questions/43767215/stackdriver-collecting-metrics-from-outside-gcp-and-aws

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!