mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 04:55:55 +08:00
chore: small patch to fix consumer_group check
This commit is contained in:
parent
74162456e5
commit
3b94dab3ce
@ -48,15 +48,14 @@ func buildClickHouseQuery(messagingQueue *MessagingQueue, queueType string, quer
|
|||||||
return nil, fmt.Errorf("invalid type for Partition")
|
return nil, fmt.Errorf("invalid type for Partition")
|
||||||
}
|
}
|
||||||
|
|
||||||
consumerGroup, ok := messagingQueue.Variables["consumer_group"]
|
|
||||||
if !ok {
|
|
||||||
return nil, fmt.Errorf("invalid type for consumer group")
|
|
||||||
}
|
|
||||||
|
|
||||||
var query string
|
var query string
|
||||||
if queryContext == "producer" {
|
if queryContext == "producer" {
|
||||||
query = generateProducerSQL(start, end, topic, partition, queueType)
|
query = generateProducerSQL(start, end, topic, partition, queueType)
|
||||||
} else if queryContext == "consumer" {
|
} else if queryContext == "consumer" {
|
||||||
|
consumerGroup, ok := messagingQueue.Variables["consumer_group"]
|
||||||
|
if !ok {
|
||||||
|
return nil, fmt.Errorf("invalid type for consumer group")
|
||||||
|
}
|
||||||
query = generateConsumerSQL(start, end, topic, partition, consumerGroup, queueType)
|
query = generateConsumerSQL(start, end, topic, partition, consumerGroup, queueType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user