Stackdriver 监控自动化
Stackdriver Monitoring automation
我们想知道是否有任何方法可以以编程方式操作您通常使用 Stackdriver UI 设置的仪表板、警报和其他内容。将 Stackdriver 对象的定义保留在 Git 中并使用 API 部署它们会很棒。是否有我们无法通过谷歌搜索找到的可用功能?
有Stackdriver monitoring API, you can create custom metrics, organize your cloud resources using groups, even create uptime check configurations. You have all the related documents here.
是的。大多数这些东西都可以使用 Monitoring API. There is support in that API for managing metrics, groups, notification channels, alerting policies, etc. Some of these can also be manipulated using the Cloud SDK (see the documentation for gcloud alpha monitoring). As of this writing, it does not look like the endpoints for dashboards are widely publicly available yet, though double-check the API reference if you come across this answer from a later date. For capabilities that are not available, you may want to consider reaching out to the discussion forum 来管理,以提出功能请求或添加到抢先体验或私人 Alpha 功能(如果可用)。
我们想知道是否有任何方法可以以编程方式操作您通常使用 Stackdriver UI 设置的仪表板、警报和其他内容。将 Stackdriver 对象的定义保留在 Git 中并使用 API 部署它们会很棒。是否有我们无法通过谷歌搜索找到的可用功能?
有Stackdriver monitoring API, you can create custom metrics, organize your cloud resources using groups, even create uptime check configurations. You have all the related documents here.
是的。大多数这些东西都可以使用 Monitoring API. There is support in that API for managing metrics, groups, notification channels, alerting policies, etc. Some of these can also be manipulated using the Cloud SDK (see the documentation for gcloud alpha monitoring). As of this writing, it does not look like the endpoints for dashboards are widely publicly available yet, though double-check the API reference if you come across this answer from a later date. For capabilities that are not available, you may want to consider reaching out to the discussion forum 来管理,以提出功能请求或添加到抢先体验或私人 Alpha 功能(如果可用)。