迪恩·希勒
我 在我们的Google Cloud登台服务器中 添加了 https://micrometer.io 。 该指标不会显示在“云运行修订”资源类型中。 只有在选择“全局”(如此处所示)时,它才可见。
指令非常简单明了(MUL UNLIKE opencensus,它的api设计过度)。 实际上,与opencensus不同,它开箱即用,除了没有记录到“ Cloud Run Revision”中。
我什至无法在过滤器中选择service_name,因此一旦部署到生产环境,该指标将同时记录产品和登台,这不是我们想要的。
如何进一步调试千分尺
If anyone knows offhand as well what the issue might be, that would be great as well? (though I don't mind learning micrometer and debugging it a bit more).
Victor_Torres
For now the only available monitored-resource types in your custom metrics are:
aws_ec2_instance: Amazon EC2 instance.
dataflow_job: Dataflow job.
gce_instance: Compute Engine instance.
gke_container: GKE container instance.
generic_node: User-specified computing node.
generic_task: User-defined task.
global: Use this resource when no other resource type is suitable. For most use cases, generic_node or generic_task are better choices than global.
k8s_cluster: Kubernetes集群
k8s_container: Kubernetes容器
k8s_node: Kubernetes节点
k8s_pod: Kubernetes荚
因此,在这种情况下,全局是正确的受监视资源类型,因为还没有Cloud Run受监视资源类型。
为了更好地确定指标,您可以创建指标描述符( 自动创建 或 手动 创建)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
编辑于2021-04-2
我来说两句