团队,我有一个查询来提取某些与表达式匹配的pod和名称空间,但我想将它们提取最近x天。怎么办?
count(kube_pod_info{namespace=~"team-.*", pod=~"export-.*"} ) by (namespace)
输出
元素 --------------------------------------- ------ 值
{namespace="team-a4-db8a1b8b054f"} 500
尝试查询以获取最后1d相同的结果:请参见查询[1d]
的结尾
count(kube_pod_info{namespace=~"team-.*", pod=~"export-.*"} ) by (namespace)[1d]
错误输出
Error executing query: invalid parameter 'query': 1:195: parse error: ranges only allowed for vector selectors
答案 0 :(得分:0)
尝试一下:
created() {
setTimeout(function(){ console.log('Component has been created!');
this.schema.properties.stringProp = {
type: 'string',
title: 'I\'m a string',
description: 'This description is used as a help message.'
}
}, 3000);
}