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

[Feature Request] Add Server_Name tagKey for multiple Tautulli servers #197

Open
ludditus-RPI opened this issue Mar 1, 2021 · 6 comments
Labels
more-info-requested Waiting on more information

Comments

@ludditus-RPI
Copy link

Is your feature request related to a problem? Please describe.
The value stored in Influx for multiple Tautulli servers would be more useful with a server name set in the varken.ini file.

I have two Tautulli servers and have configured Varken to include both. I added a Grafana query variable to select the server(s) I want to display. The choices are '1','2' which are not as useful as a specific server name when displaying graphs or filtering information from multiple servers.

Describe the solution you'd like
Add a key/value pair to varken.ini under the Tautulli block (server_name = myuniqueserver) and write the value to influxDB as a tagKey under the Tautulli measurement.

Describe alternatives you've considered
Manually setting alias values for the 'server' tag for each panel in Grafana. This is problematic when aliasing an integer like '1' compared with aliasing a unique identifier.

Additional context
Screenshot of current variable selector for 'server'
image

Resulting default Grafana panel alias for 'server'
image

@ludditus-RPI ludditus-RPI added the awaiting-triage Request awaiting triage label Mar 1, 2021
@eiddor

This comment has been minimized.

@samwiseg0

This comment has been minimized.

@samwiseg0
Copy link
Member

samwiseg0 commented Jun 3, 2021

@ludditus-RPI Have you tired using value mappings? I would prefer not to add this to the config file.

With value mappings you can change it to whatever string you would like.

@eiddor

This comment has been minimized.

@samwiseg0 samwiseg0 added more-info-requested Waiting on more information and removed awaiting-triage Request awaiting triage labels Jun 3, 2021
@ludditus-RPI
Copy link
Author

@samwiseg0 Sorry for the late reply. I have successfully used value mappings and overrides for various dashboard queries, as well as in a custom variable:

custom_dash_var1

This works, but the value mapping or override needs to be repeated on every dashboard panel, which is kind of tedious. Even if grafana could do a global value mapping that worked across all panels, I don't think you would want to globally map '1' or '2' to a text value for an entire dashboard.

It would be more elegant if the data from Varken included a friendly name for a server in addition to a number, which could be set in the config file. But I understand this is a bit of an edge case (with a workaround) if you'd like to close the issue.

@samwiseg0
Copy link
Member

Glad this is working for you.

Let me see if in the API calls we already make we can get the server name. I suspect we cannot. If we can then it should be a quick add. If not I would not prefer to make yet another call to tautulli just for the server name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-requested Waiting on more information
Projects
None yet
Development

No branches or pull requests

3 participants