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

add non global annotations #3

Open
tsn77130 opened this issue Sep 5, 2017 · 2 comments
Open

add non global annotations #3

tsn77130 opened this issue Sep 5, 2017 · 2 comments

Comments

@tsn77130
Copy link

tsn77130 commented Sep 5, 2017

Hi guys
I sometimes need to generate non global annotations (ie. annotations linked to a particular resource ; ex events,server=db1 title=reboot,text=i have rebooted this server only).

I was thinking to additionnal optionnal text panel (between timestamp and title for example), which could do the job.

Do you plan to do something like this fot this kind of situations ?

thanks
thomas

@naiconovalabs
Copy link
Collaborator

Hi!

If I understand the point, you are using a tag called "server". If so, tags field do your job:

In Annotations Options > Column Mapping:

  • Table: events
  • Title: title
  • Tags: server
  • Text: text

Then, in your dashboard > Annotations settings add new query:

  • Name: serverDB1
  • Data source: <your_data_source>
  • Hide toggle / Color: what you want
  • Query: select * from events where server = 'db1'

Field mappings:

  • Title: title
  • Tags: server
  • Text: text

You can repeat it for another query, like "db2", "db3", ...
Now you can insert annotation that respect your line of Influx Line Protocol
events,server='db1' title='reboot',text='i have rebooted this server only'

schermata 2017-09-06 alle 14 53 10

Let me know if this is useful!
Thanks

@tsn77130
Copy link
Author

tsn77130 commented Sep 8, 2017

Hi @naiconovalabs ,

Thanks for your answer.
It ts indeed what I was trying to do, thanks !

Bonus question, is it possible to do the same thing, but with multiple different vales (ex : server, and another one, like region for example)
Like we specifically map server on tags, i believe we can't do that ?

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

2 participants