Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A+B without using a key #106

Open
grambharos opened this issue Aug 12, 2020 · 3 comments
Open

A+B without using a key #106

grambharos opened this issue Aug 12, 2020 · 3 comments

Comments

@grambharos
Copy link

grambharos commented Aug 12, 2020

Hi Friend,
Is it possible to have a sum of two queries without using a key value?

With Key value
A: alias(query, 'cta')
B: alias(query, 'ctb')
C: A['cta']+B['ctb']

Without Key value
is this possible or is there something similar ?
A: query
B: query
C: A['*']+B['*']

@Gauravshah
Copy link
Member

grafana doesn't have data like that. Can you post a screen shot of dashboard showing A & B (both panel config & data) that might help me better understand the request.

@grambharos
Copy link
Author

Hi Gauravshah,
An example like this, because I use regex

A: aliasSub(sumSeries(graphite.metrics.cloud1.*), '(.*)', '\1')
B: aliasSub(sumSeries(graphite.metrics.cloud2.*), '(.*)', '\1')
C: A['howtoregexkeyA']+B['howtoregexkeyB']

@niltongouveajunior
Copy link

Hi @Gauravshah,

I have a similar question:

grafana

Can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants