Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problems in using Grafana

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you how to solve the problems in the use of Grafana. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Question 1:

Phenomenon: the first time you use Grafana, you create a new data source (no default is selected), and then you plan to create a Dashboard for memory, but you find that there is data, as shown in the following figure

Solution: when creating a data source, check it as the default

Then create the Dashboard again, there is no data, it is a brand new panel.

Question 2:

Phenomenon: a Dashbard for memory has been created, but the server under test has no data to pass or draw. Lengthen the time, for example, in recent days, and find that there are drawings. Mouse over the drawing area, the display time is a few days ago (for example, today is May 13, the drawing place is May 10).

Solution:

Go to the server under test, use date to check the current date, and find that the current time of the server is indeed a few days ago, that is, it is not consistent with the actual time now.

Find similar problems and solutions on the Internet as follows:

'To 'To

Original: https://blog.csdn.net/gongyf1977/article/details/84029351

A CentOS system is installed in the virtual machine, but the system time is seriously different from the actual time, which may be due to the fact that the bios clock does not work after the computer is turned off.

Fortunately, virtual machines can also be connected to the Internet, and network clocks can be synchronized using ntp services.

Switch to root user and install ntpdate

# yum install-y ntpdate

Running

# ntpdate time.nist.gov

Keep reporting

No server suitable for synchronization found error

After searching on the Internet for a long time, it was not solved. Later, I found that the local ntpd service needs to be enabled before it can be synchronized.

Enable local ntpd service

# service ntpd start

Run # ntpdate time.nist.gov again

The operation is not successful

Rebooted the computer (and turned it off once)

Use # ntpdate time.nist.gov again

It seems to have worked successfully.

It will take a few minutes to synchronize

If you want to view the synchronization process with ntptrace, you also need to install ntp-perl

# yun install-y ntp-perl

# ntptrace

View time after synchronization

# date

It has been updated to network time.

The configuration file for ntp is in

/ etc/ntp.conf

You don't have to modify it.

Now we just synchronize the system time, and we need to update the system time to BIOS.

# hwclock-w

Check the BIOS time again.

# hwclock

It's been updated, ok.

'" "

Later, I tried again, according to the above method, indeed solved, but after the computer is closed, the next time to turn on, the time is still in the last time.

Each time you restart the virtual machine, the time is restored.

The above is the editor for you to share the problems in the use of Grafana how to solve, if there happen to be similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report