当前位置:网站首页>Kubernetes monitoring: grafana adds datasource and dashboard through automation
Kubernetes monitoring: grafana adds datasource and dashboard through automation
2022-06-22 13:49:00 【Dongcheng jueshen】
List of articles
Recommended sites :Ansible Official website
One 、 Background information
Due to the nature of the business , We need to deploy the business system in the local computer rooms of multiple customers , Because the customer does not have a unified monitoring system , So we need to deploy the monitoring system in the customer's computer room , The main monitoring host 、 Interface 、 Ports, etc .
For business system deployment and maintenance scenarios , We have developed operation and maintenance tools , It mainly includes early deployment 、 Two key points of post maintenance , Monitoring is an important indicator of deployment , So we need to integrate these monitoring modules into the operation and maintenance tools , The monitoring system components here include :node-exporter+blackbox-exporter+alertmanager+prometheus+grafana.
grafana As an important module in the monitoring component , Automated deployment is simple , There are many other operations besides deployment , For example, add a data source 、 Import monitoring template , These need to be operated manually . If these cannot be automated , Then your operation and maintenance tool can hardly be called an automation tool .
Here we will focus on how to add... In an automated way datasource and dashboard?
Two 、 Operation steps
Method 1 : adopt http api Interface
1、 establish API token
curl -X POST -H "Content-Type: application/json" -d '{"name":"apikeycurl", "role": "Admin"}' http://lolaage:[email protected]:3000/api/auth/keys
As shown in the figure below :
explain : Save the key returned here in your password manager , Because you can't get it again in the future .
summary : Sorting is not easy to , If it helps you , Can you like it and pay attention to ?
For more details, please refer to :Ansible Automation operation and maintenance practice
边栏推荐
- 怎样在手机上开户?网上开户安全么?
- If the programmer tells the truth during the interview
- Performance of recommender algorithms on top-N recommendation tasks
- 如何给VR全景作品添加遮罩?作用是什么?
- Consolidation of common functions of numpy Library
- 测试组的任务职责和测试的基本概念
- 哈希索引设计发展史
- 聊一聊数据库的行存与列存
- Chapter 1 overview of naturallanguageprocessing and deep learning
- MySQL中的视图
猜你喜欢

技术实践 | 场景导向的音视频通话体验优化

数据库 就业咨询系统求各位帮下忙

HMS core news industry solution: let technology add humanistic temperature

测试组的任务职责和测试的基本概念

After several years of writing at CSDN, I published "the first book". Thank you!

别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!

leetcode-并查集

In June, China database industry analysis report was released! Smart wind, train storage and regeneration

leetcode-子序列/子串問題

Acwing 241 Loulan totem (detailed explanation of tree array)
随机推荐
简简单单的科研秘籍
高薪程序员&面试题精讲系列114之Redis缓存你熟悉吗?Redis的key如何设计?内存淘汰机制你熟悉吗?
Andrdoid delay operation
History of hash index design
性能相关指标
防火墙基础之策略部署
测试组的任务职责和测试的基本概念
JSP based library management system, including source code, database script, video tutorial for project operation, and video tutorial for thesis writing
Number of times Oracle uses cursor to decompose numbers
程序员要不要选择软件人才外包公司?
Nine good programming habits for 10 years
Which securities company is good for retail investors to open an account? Is it safe to open a mobile account?
怎样在手机上开户?网上开户安全么?
力扣每日一练之双指针2Day9
Instanceinforeplicator class of Eureka (service registration auxiliary class)
Customer member value analysis
"N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau
Redis+Caffeine两级缓存的实现
Tianrun cloud is about to be listed: VC tycoon Tian Suning significantly reduces his holdings and is expected to cash out HK $260million
Starting Oracle under Linux