如何在 Datadog 中为 y 轴添加标签?

发布于 2025-01-11 08:09:29 字数 589 浏览 3 评论 0 原文

我有一个自定义指标的图表,如下所示:

在此处输入图像描述

如何为 y 轴添加标签?我在仪表板设置中没有看到任何选项。探索其他指标,我发现它们已经有这样的标签。例如,kubernetes.cpu.usage.total 显示 millicores,独立于仪表板:

在此处输入图像描述

所以,我想也许我需要发送带有一些元数据的指标 已经?我找不到任何有关此的信息。

FWIW,我正在使用 Datadog 的 Python 客户端提交指标:api.Metric.send(metric='custom.foo',points=(now, point))

I have a chart for a custom metric like this one:

enter image description here

How can I add a label for the y-axis? I don't see any option in the dashboard settings. Exploring other metrics, I see they already have such label. For example, kubernetes.cpu.usage.total shows millicores, independently of the dashboard:

enter image description here

So, I guess that maybe I need to send the metric with some metadata already? I can't find any information about this.

FWIW, I'm using the Datadog's Python client to submit the metric: api.Metric.send(metric='custom.foo', points=(now, point))

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文