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 Font Awesome Icons #31562

Closed
mertbakir opened this issue Mar 1, 2021 · 3 comments
Closed

Add Font Awesome Icons #31562

mertbakir opened this issue Mar 1, 2021 · 3 comments

Comments

@mertbakir
Copy link

What would you like to be added:

I would like to be able use fontawesome (or some other) icons inside the panels. It would be useful in "Stat" panel, table panel. Emojis/Icons should be set as

  • Field > Display Name
  • Field > No Value
  • Field > Value Mapping
  • Transform > Organize Fields

Why is this needed:

I have use case, where I'm going to repeat "Current", "Previous" in multiple panels. It would be better to indicate these words with simple icons.

Another use case I can think of is indicating status (crit, warning, ok).

@therealcodlord
Copy link

I asked for this feature some time ago. At that time I was told Emoji is supported which it is (at least on most devices).

You just need to cut/past the Emoji from somewhere like http://getemoji.com/ anywhere you can enter text). I guess it is unlikely that Font Awesome support would be added even though I think it would be great to be able to use the full range of Font Awesome icons in Grafana and not just Emoji.

The old v6 table panel (which is still usable in current versions of Grafana) it's possible to use font awesome icons as you can enable the Sanitize HTML option on the Column Styles section which will then render any HTML you choose to output.

So Emoji is quick and easy and already supported so for your current/previous you should be able to use arrow emoji etc.

@torkelo
Copy link
Member

torkelo commented Mar 1, 2021

Yea for emoji just paste it in, we wont add support for custom icons, maybe images ini value mapping or thresholds states

@torkelo torkelo closed this as completed Mar 1, 2021
@mertbakir
Copy link
Author

I'm aware of that we can copy/paste emojis. We can also use unicode characters as icons but full support of Font Awesome could be useful. Icons are eye-catching. Imagine a dashboard for an IoT device, we can find icons for temperature, pressure and other metrics. Emojis doesn't cover that. Also emojis may look unprofessional in some cases.

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