Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 windows 节点导出器,它包含带有 windows_os_info 查询的“版本”标签值。我正在运行 grafana 7.2.1,并尝试了各种配置,但无法让它仅显示 'version' 。有任何想法吗?
试试sum by (version) (your_original_query_here)。
sum by (version) (your_original_query_here)
听起来您最好为此使用表格。我已经用类似的查询对此进行了测试:
sum by (instance,version) (windows_os_info)
然后使用以下选项创建一个表:
查询选项
然后在转换部分下选择“组织字段”并让它只显示实例和版本。
您当然可以玩弄它,以便根据您的需要显示。
最终结果看起来像:
桌子