Querying Service Name as Variable
TLDR Romario asked how to use "service name" as a variable in queries. Srikanth suggested replacing stringTagMap['service.name']
with DISTINCT serviceName
.
Powered by Struct AI

5
5mo
Solved
Apr 24, 2023 (5 months ago)
Romario
Romario
06:09 PMWhat’s the tag for “service name” to use it in queries?
06:10
Romario
06:10 PMI think is
service.name
lol06:14
Romario
06:14 PMHow can I use the service name as variable? I tried this but it takes a lot of time to run
Apr 25, 2023 (5 months ago)
Srikanth
Srikanth
08:32 AMreplace
stringTagMap['service.name']
with DISTINCT serviceName

Romario
Romario
03:03 PMthanks!
SigNoz Community
Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI
Indexed 825 threads (61% resolved)
Similar Threads
Troubleshooting ILIKE Query Error
Romario is having trouble using ILIKE with a variable in a query. Srikanth suggests checking the quotes, but the issue remains unresolved.
8
4mo
Customizing Signoz Error Alert Descriptions
Sumanth needed help with making Signoz error alert descriptions more descriptive. Amol suggested using {{.Labels.serviceName}} and discussed limitations of adding labels in queries.
5
3mo
Solved
Using Variables in Dashboard Query Builder
Nishant needed help with using variables in query builder, and Srikanth provided the correct syntax to use.

3
5mo
Solved