mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 18:36:16 +00:00
fix: correct query data for cluster details metric view in infra monitoring (#8380)
This commit is contained in:
parent
53c58b9983
commit
2196b58d36
@ -731,7 +731,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
selectedTime: 'GLOBAL_TIME',
|
selectedTime: 'GLOBAL_TIME',
|
||||||
graphType: PANEL_TYPES.TIME_SERIES,
|
graphType: PANEL_TYPES.TABLE,
|
||||||
query: {
|
query: {
|
||||||
builder: {
|
builder: {
|
||||||
queryData: [
|
queryData: [
|
||||||
@ -751,7 +751,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: 'a7da59c7',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -786,12 +786,12 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sDeploymentNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'available',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'A',
|
queryName: 'A',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'sum',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'latest',
|
||||||
},
|
},
|
||||||
@ -804,14 +804,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDeploymentDesiredKey,
|
key: k8sDeploymentDesiredKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'avg',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'B',
|
expression: 'B',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: '55110885',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -846,14 +846,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sDeploymentNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'desired',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'B',
|
queryName: 'B',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'sum',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'avg',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
queryFormulas: [],
|
queryFormulas: [],
|
||||||
@ -890,13 +890,13 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
queryType: EQueryType.QUERY_BUILDER,
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
},
|
},
|
||||||
variables: {},
|
variables: {},
|
||||||
formatForWeb: false,
|
formatForWeb: true,
|
||||||
start,
|
start,
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
selectedTime: 'GLOBAL_TIME',
|
selectedTime: 'GLOBAL_TIME',
|
||||||
graphType: PANEL_TYPES.TIME_SERIES,
|
graphType: PANEL_TYPES.TABLE,
|
||||||
query: {
|
query: {
|
||||||
builder: {
|
builder: {
|
||||||
queryData: [
|
queryData: [
|
||||||
@ -909,14 +909,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sStatefulsetCurrentPodsKey,
|
key: k8sStatefulsetCurrentPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'max',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'A',
|
expression: 'A',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: '3c57b4d1',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -951,14 +951,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sStatefulsetNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'current',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'A',
|
queryName: 'A',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'sum',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'max',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
@ -969,14 +969,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sStatefulsetDesiredPodsKey,
|
key: k8sStatefulsetDesiredPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'max',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'B',
|
expression: 'B',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: '0f49fe64',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -1011,14 +1011,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sStatefulsetNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'desired',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'B',
|
queryName: 'B',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'sum',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'max',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
@ -1029,14 +1029,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sStatefulsetReadyPodsKey,
|
key: k8sStatefulsetReadyPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'max',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'C',
|
expression: 'C',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: '0bebf625',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -1071,14 +1071,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sStatefulsetNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'ready',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'C',
|
queryName: 'C',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'sum',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'max',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
@ -1089,14 +1089,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sStatefulsetUpdatedPodsKey,
|
key: k8sStatefulsetUpdatedPodsKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'max',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'D',
|
expression: 'D',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: '1ddacbbe',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -1131,14 +1131,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sStatefulsetNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'updated',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'D',
|
queryName: 'D',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'sum',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'max',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
queryFormulas: [],
|
queryFormulas: [],
|
||||||
@ -1199,13 +1199,13 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
queryType: EQueryType.QUERY_BUILDER,
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
},
|
},
|
||||||
variables: {},
|
variables: {},
|
||||||
formatForWeb: false,
|
formatForWeb: true,
|
||||||
start,
|
start,
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
selectedTime: 'GLOBAL_TIME',
|
selectedTime: 'GLOBAL_TIME',
|
||||||
graphType: PANEL_TYPES.TIME_SERIES,
|
graphType: PANEL_TYPES.TABLE,
|
||||||
query: {
|
query: {
|
||||||
builder: {
|
builder: {
|
||||||
queryData: [
|
queryData: [
|
||||||
@ -1218,14 +1218,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDaemonsetCurrentScheduledNodesKey,
|
key: k8sDaemonsetCurrentScheduledNodesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'avg',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'A',
|
expression: 'A',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: 'e0bea554',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -1250,24 +1250,16 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sDaemonsetNameKey}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'current_nodes',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'A',
|
queryName: 'A',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'avg',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'avg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
@ -1278,14 +1270,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDaemonsetDesiredScheduledNodesKey,
|
key: k8sDaemonsetDesiredScheduledNodesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'avg',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'B',
|
expression: 'B',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: '741052f7',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -1310,24 +1302,16 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sDaemonsetNameKey}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'desired_nodes',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'B',
|
queryName: 'B',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'avg',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'avg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
aggregateAttribute: {
|
aggregateAttribute: {
|
||||||
@ -1338,14 +1322,14 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDaemonsetReadyNodesKey,
|
key: k8sDaemonsetReadyNodesKey,
|
||||||
type: 'Gauge',
|
type: 'Gauge',
|
||||||
},
|
},
|
||||||
aggregateOperator: 'latest',
|
aggregateOperator: 'avg',
|
||||||
dataSource: DataSource.METRICS,
|
dataSource: DataSource.METRICS,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
expression: 'C',
|
expression: 'C',
|
||||||
filters: {
|
filters: {
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
id: 'd7779183',
|
id: 'f23759f2',
|
||||||
key: {
|
key: {
|
||||||
dataType: DataTypes.String,
|
dataType: DataTypes.String,
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
@ -1370,24 +1354,16 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
key: k8sDaemonsetNameKey,
|
key: k8sDaemonsetNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
having: [],
|
having: [],
|
||||||
legend: `{{${k8sDaemonsetNameKey}} ({{${k8sNamespaceNameKey}})`,
|
legend: 'ready_nodes',
|
||||||
limit: null,
|
limit: null,
|
||||||
orderBy: [],
|
orderBy: [],
|
||||||
queryName: 'C',
|
queryName: 'C',
|
||||||
reduceTo: 'avg',
|
reduceTo: 'last',
|
||||||
spaceAggregation: 'max',
|
spaceAggregation: 'avg',
|
||||||
stepInterval: 60,
|
stepInterval: 60,
|
||||||
timeAggregation: 'latest',
|
timeAggregation: 'avg',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
queryFormulas: [],
|
queryFormulas: [],
|
||||||
@ -1436,316 +1412,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
queryType: EQueryType.QUERY_BUILDER,
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
},
|
},
|
||||||
variables: {},
|
variables: {},
|
||||||
formatForWeb: false,
|
formatForWeb: true,
|
||||||
start,
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
selectedTime: 'GLOBAL_TIME',
|
|
||||||
graphType: PANEL_TYPES.TIME_SERIES,
|
|
||||||
query: {
|
|
||||||
builder: {
|
|
||||||
queryData: [
|
|
||||||
{
|
|
||||||
aggregateAttribute: {
|
|
||||||
dataType: DataTypes.Float64,
|
|
||||||
id: 'k8s_job_active_pods--float64--Gauge--true',
|
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobActivePodsKey,
|
|
||||||
type: 'Gauge',
|
|
||||||
},
|
|
||||||
aggregateOperator: 'latest',
|
|
||||||
dataSource: DataSource.METRICS,
|
|
||||||
disabled: false,
|
|
||||||
expression: 'A',
|
|
||||||
filters: {
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
id: 'd7779183',
|
|
||||||
key: {
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
op: '=',
|
|
||||||
value: cluster.meta.k8s_cluster_name,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
op: 'AND',
|
|
||||||
},
|
|
||||||
functions: [],
|
|
||||||
groupBy: [
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_job_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
having: [],
|
|
||||||
legend: `{{${k8sJobNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
|
||||||
limit: null,
|
|
||||||
orderBy: [],
|
|
||||||
queryName: 'A',
|
|
||||||
reduceTo: 'avg',
|
|
||||||
spaceAggregation: 'max',
|
|
||||||
stepInterval: 60,
|
|
||||||
timeAggregation: 'latest',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
aggregateAttribute: {
|
|
||||||
dataType: DataTypes.Float64,
|
|
||||||
id: 'k8s_job_successful_pods--float64--Gauge--true',
|
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobSuccessfulPodsKey,
|
|
||||||
type: 'Gauge',
|
|
||||||
},
|
|
||||||
aggregateOperator: 'latest',
|
|
||||||
dataSource: DataSource.METRICS,
|
|
||||||
disabled: false,
|
|
||||||
expression: 'B',
|
|
||||||
filters: {
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
id: 'd7779183',
|
|
||||||
key: {
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
op: '=',
|
|
||||||
value: cluster.meta.k8s_cluster_name,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
op: 'AND',
|
|
||||||
},
|
|
||||||
functions: [],
|
|
||||||
groupBy: [
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_job_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
having: [],
|
|
||||||
legend: `{{${k8sJobNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
|
||||||
limit: null,
|
|
||||||
orderBy: [],
|
|
||||||
queryName: 'B',
|
|
||||||
reduceTo: 'avg',
|
|
||||||
spaceAggregation: 'max',
|
|
||||||
stepInterval: 60,
|
|
||||||
timeAggregation: 'latest',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
aggregateAttribute: {
|
|
||||||
dataType: DataTypes.Float64,
|
|
||||||
id: 'k8s_job_failed_pods--float64--Gauge--true',
|
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobFailedPodsKey,
|
|
||||||
type: 'Gauge',
|
|
||||||
},
|
|
||||||
aggregateOperator: 'latest',
|
|
||||||
dataSource: DataSource.METRICS,
|
|
||||||
disabled: false,
|
|
||||||
expression: 'C',
|
|
||||||
filters: {
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
id: 'd7779183',
|
|
||||||
key: {
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
op: '=',
|
|
||||||
value: cluster.meta.k8s_cluster_name,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
op: 'AND',
|
|
||||||
},
|
|
||||||
functions: [],
|
|
||||||
groupBy: [
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_job_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
having: [],
|
|
||||||
legend: `{{${k8sJobNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
|
||||||
limit: null,
|
|
||||||
orderBy: [],
|
|
||||||
queryName: 'C',
|
|
||||||
reduceTo: 'avg',
|
|
||||||
spaceAggregation: 'max',
|
|
||||||
stepInterval: 60,
|
|
||||||
timeAggregation: 'latest',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
aggregateAttribute: {
|
|
||||||
dataType: DataTypes.Float64,
|
|
||||||
id: 'k8s_job_desired_successful_pods--float64--Gauge--true',
|
|
||||||
isColumn: true,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobDesiredSuccessfulPodsKey,
|
|
||||||
type: 'Gauge',
|
|
||||||
},
|
|
||||||
aggregateOperator: 'latest',
|
|
||||||
dataSource: DataSource.METRICS,
|
|
||||||
disabled: false,
|
|
||||||
expression: 'D',
|
|
||||||
filters: {
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
id: 'd7779183',
|
|
||||||
key: {
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_cluster_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sClusterNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
op: '=',
|
|
||||||
value: cluster.meta.k8s_cluster_name,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
op: 'AND',
|
|
||||||
},
|
|
||||||
functions: [],
|
|
||||||
groupBy: [
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_job_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sJobNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
dataType: DataTypes.String,
|
|
||||||
id: 'k8s_namespace_name--string--tag--false',
|
|
||||||
isColumn: false,
|
|
||||||
isJSON: false,
|
|
||||||
key: k8sNamespaceNameKey,
|
|
||||||
type: 'tag',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
having: [],
|
|
||||||
legend: `{{${k8sJobNameKey}}} ({{${k8sNamespaceNameKey}})`,
|
|
||||||
limit: null,
|
|
||||||
orderBy: [],
|
|
||||||
queryName: 'D',
|
|
||||||
reduceTo: 'avg',
|
|
||||||
spaceAggregation: 'max',
|
|
||||||
stepInterval: 60,
|
|
||||||
timeAggregation: 'latest',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
queryFormulas: [],
|
|
||||||
},
|
|
||||||
clickhouse_sql: [
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'A',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'B',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'C',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'D',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
id: v4(),
|
|
||||||
promql: [
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'A',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'B',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'C',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disabled: false,
|
|
||||||
legend: '',
|
|
||||||
name: 'D',
|
|
||||||
query: '',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
queryType: EQueryType.QUERY_BUILDER,
|
|
||||||
},
|
|
||||||
variables: {},
|
|
||||||
formatForWeb: false,
|
|
||||||
start,
|
start,
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -1777,7 +1444,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
isColumn: false,
|
||||||
isJSON: false,
|
isJSON: false,
|
||||||
key: 'k8s_cluster_name',
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@ -1837,7 +1504,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
isColumn: false,
|
||||||
isJSON: false,
|
isJSON: false,
|
||||||
key: 'k8s_cluster_name',
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@ -1897,7 +1564,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
isColumn: false,
|
||||||
isJSON: false,
|
isJSON: false,
|
||||||
key: 'k8s_cluster_name',
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@ -1957,7 +1624,7 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
id: 'k8s_cluster_name--string--tag--false',
|
id: 'k8s_cluster_name--string--tag--false',
|
||||||
isColumn: false,
|
isColumn: false,
|
||||||
isJSON: false,
|
isJSON: false,
|
||||||
key: 'k8s_cluster_name',
|
key: k8sClusterNameKey,
|
||||||
type: 'tag',
|
type: 'tag',
|
||||||
},
|
},
|
||||||
op: '=',
|
op: '=',
|
||||||
@ -2005,6 +1672,24 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
name: 'A',
|
name: 'A',
|
||||||
query: '',
|
query: '',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
legend: '',
|
||||||
|
name: 'B',
|
||||||
|
query: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
legend: '',
|
||||||
|
name: 'C',
|
||||||
|
query: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
legend: '',
|
||||||
|
name: 'D',
|
||||||
|
query: '',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
id: v4(),
|
id: v4(),
|
||||||
promql: [
|
promql: [
|
||||||
@ -2014,6 +1699,24 @@ export const getClusterMetricsQueryPayload = (
|
|||||||
name: 'A',
|
name: 'A',
|
||||||
query: '',
|
query: '',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
legend: '',
|
||||||
|
name: 'B',
|
||||||
|
query: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
legend: '',
|
||||||
|
name: 'C',
|
||||||
|
query: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
disabled: false,
|
||||||
|
legend: '',
|
||||||
|
name: 'D',
|
||||||
|
query: '',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
queryType: EQueryType.QUERY_BUILDER,
|
queryType: EQueryType.QUERY_BUILDER,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user