How to change the title of grafana site ( version : 7.3.5)

Hello,
I’m using grafana version :7.3.5. I need to change the title of the grafana site. I changed the AppTitle in the index.html file. But it is not changed properly. It changed only at the time of refresh then after it shows grafana. So anybody knows how I can change it?

Hi,

I guess you followed this link :

Did you try and restart your instance ?

Hope it helps.

Good Luck :innocent:

Yes I followed this link. And I also restart my instance but it didn’t help me.

Hi,

You need to change some js files to obtain a result :

You go to your /usr/share/grafana/public/build

Then you perform a search :
image

Then change those two js files, you will find AppTitle set to ‘Grafana’. Reopen a new tab to get changes.

Hope it helps.

Good Luck

Hi
It is working now.
Thank You so much.

Hi
I’m facing one more problem. I want to remove this panel also. Do you know how I can remove this panel

Hi,

Did you try the remove panel at the right ?

Ps : please open new topics

Good Luck

Hi,
Actually this is the manual step to do that. I want to do this from code.
Okay I’ll open a new topic for that.
Thank You

Hi,
I open a new ticket for removing default panel :" How to remove the default panel from grafana dashboard. (Version: 7.3.5) "

Hi,

I found a way to do it :

1 - In the folder : /usr/share/grafana/public/dashboards, you will find a home.json which is the home dashboard.
2 - You can either change it’s content by using shell (remove lines) or by creating a another dashboard customised for your need and replace the home.json.

Note : Please make a copy of home.json before editing :slight_smile:

Editing the home.json

As you can see I removed the lines for the welcome and it disappeared.

Hope it helps.

Good Luck

Yes I have done this. And create a Custom dashboard. But I want to remove this “Basic” panel also.

1 Like

Hi,

Finally found out :slight_smile: , there is a column help_flags1 that is set by default to 0, when you click on the remove panel link, it sends are request to db to update this flag to 1.

So you can remove the panel by either using this sqlite query :
update user set help_flags1 = 1
Note : this will apply to all users.

Or you can call the api, as used in javascript code :

The reference file is : /usr/share/grafana/public/app/plugins/panel/gettingstarted/GettingStarted.tsx

Hope it helps.

Good Luck

Okay. Thank you :slight_smile: I will try this solution.

This topic was automatically closed after 365 days. New replies are no longer allowed.