Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,45 @@ const FIRST_ROW_WIDGTS = spaceWidgetsEquallyOnRow(

const SECOND_ROW_WIDGETS = spaceWidgetsEquallyOnRow([...QUEUE_CHARTS], 1);

const TRANSACTIONS_TABLE: Widget = {
id: 'transactions-table',
title: t('Transactions Interacting with Destination'),
const PRODUCER_TABLE: Widget = {
id: 'producer-table',
title: t('Producer Transactions'),
displayType: DisplayType.TABLE,
widgetType: WidgetType.SPANS,
interval: '5m',
queries: [
{
name: '',
fields: [
SpanFields.TRANSACTION,
`equation|1 - (count_if(${SpanFields.TRACE_STATUS},equals,ok) / count(${SpanFields.SPAN_DURATION}))`,
`count_if(${SpanFields.SPAN_OP},equals,queue.publish)`,
`sum(${SpanFields.SPAN_DURATION})`,
],
aggregates: [
`equation|1 - (count_if(${SpanFields.TRACE_STATUS},equals,ok) / count(${SpanFields.SPAN_DURATION}))`,
`count_if(${SpanFields.SPAN_OP},equals,queue.publish)`,
`sum(${SpanFields.SPAN_DURATION})`,
],
columns: [SpanFields.TRANSACTION],
fieldAliases: [t('Transaction'), t('Error rate'), t('Published'), t('Time spent')],
fieldMeta: [null, {valueType: 'percentage', valueUnit: null}, null, null],
conditions: `${SpanFields.SPAN_OP}:queue.publish`,
orderby: `-sum(${SpanFields.SPAN_DURATION})`,
},
],
layout: {
x: 0,
y: 7,
w: 6,
h: 3,
minH: 3,
},
};

const CONSUMER_TABLE: Widget = {
id: 'consumer-table',
title: t('Consumer Transactions'),
displayType: DisplayType.TABLE,
widgetType: WidgetType.SPANS,
interval: '5m',
Expand All @@ -139,53 +175,46 @@ const TRANSACTIONS_TABLE: Widget = {
name: '',
fields: [
SpanFields.TRANSACTION,
SpanFields.SPAN_OP,
`avg(${SpanFields.MESSAGING_MESSAGE_RECEIVE_LATENCY})`,
`avg_if(${SpanFields.SPAN_DURATION},${SpanFields.SPAN_OP},equals,queue.process)`,
`equation|1 - (count_if(${SpanFields.TRACE_STATUS},equals,ok) / count(${SpanFields.SPAN_DURATION}))`,
`count_if(${SpanFields.SPAN_OP},equals,queue.publish)`,
`count_if(${SpanFields.SPAN_OP},equals,queue.process)`,
`sum(${SpanFields.SPAN_DURATION})`,
],
aggregates: [
`avg(${SpanFields.MESSAGING_MESSAGE_RECEIVE_LATENCY})`,
`avg_if(${SpanFields.SPAN_DURATION},${SpanFields.SPAN_OP},equals,queue.process)`,
`equation|1 - (count_if(${SpanFields.TRACE_STATUS},equals,ok) / count(${SpanFields.SPAN_DURATION}))`,
`count_if(${SpanFields.SPAN_OP},equals,queue.publish)`,
`count_if(${SpanFields.SPAN_OP},equals,queue.process)`,
`sum(${SpanFields.SPAN_DURATION})`,
],
columns: [SpanFields.TRANSACTION, SpanFields.SPAN_OP],
columns: [SpanFields.TRANSACTION],
fieldAliases: [
t('Transaction'),
t('Type'),
t('Avg time in queue'),
t('Avg processing time'),
t('Error rate'),
t('Published'),
t('Processed'),
t('Time spent'),
],
fieldMeta: [
null,
null,
null,
null,
{valueType: 'percentage', valueUnit: null},
null,
null,
null,
],
conditions: SPAN_OP_FILTER,
conditions: `${SpanFields.SPAN_OP}:queue.process`,
orderby: `-sum(${SpanFields.SPAN_DURATION})`,
},
],
layout: {
x: 0,
y: 4,
w: 6,
h: 6,
minH: 6,
h: 3,
minH: 3,
},
};

Expand All @@ -194,5 +223,5 @@ export const QUEUE_SUMMARY_PREBUILT_CONFIG: PrebuiltDashboard = {
projects: [],
title: SUMMARY_DASHBOARD_TITLE,
filters: {},
widgets: [...FIRST_ROW_WIDGTS, ...SECOND_ROW_WIDGETS, TRANSACTIONS_TABLE],
widgets: [...FIRST_ROW_WIDGTS, ...SECOND_ROW_WIDGETS, CONSUMER_TABLE, PRODUCER_TABLE],
};
Loading