当前位置:网站首页>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
边栏推荐
- STM32F1与STM32CubeIDE编程实例-光断续传感器驱动
- leetcode-数学题
- Acwing 241 Loulan totem (detailed explanation of tree array)
- SQL functions -- converting a one to many relationship to a one to one relationship
- Acwing week 52
- Shell基础入门
- 《Kubernetes监控篇:Grafana通过自动化方式添加datasource和dashboard》
- "N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau
- “不敢去懷疑代碼,又不得不懷疑代碼”記一次網絡請求超時分析
- 在CSDN写文几年,我出了“第一本书“,感恩!
猜你喜欢

Word skills summary

融云:让银行轻松上“云”

My suggestions on SAP ABAP transformation

HW is around the corner. Can't you read the danger message?

"Dare not doubt the code, but have to doubt the code" a network request timeout analysis

Leetcode subsequence / substring problem

Sword finger offer II 114 Alien dictionary

leetcode LCP 10. Binary tree task scheduling

Detailed installation tutorial of MySQL 8.0.29 under windows to solve the problem that vcruntime140 cannot be found_ 1.dll、plugin caching_ sha2_ password could not be loaded

Oceanbase database helps the ideal automobile intelligent production line to realize automatic recovery within 30 seconds
随机推荐
leetcode 834. Sum of distances in the tree
client-go gin的简单整合九-Create
SSM based library management system, high-quality graduation thesis example (can be used directly), project import video, attached source code and database script, Thesis Writing Tutorial
Istio服务网格中的流量复制
Oracle cursor
测试组的任务职责和测试的基本概念
Number of times Oracle uses cursor to decompose numbers
线下实体店结合VR全景,让虚拟购物更加真实
JSP based library management system, including source code, database script, video tutorial for project operation, and video tutorial for thesis writing
leetcode 99. Restore binary search tree
Leetcode knapsack problem
Instanceinforeplicator class of Eureka (service registration auxiliary class)
What does Huawei's minutes on patents say? (including Huawei's top ten inventions)
Rigid demand of robot direction → personal thinking ←
769. Max Chunks To Make Sorted
"Dare not doubt the code, but have to doubt the code" a network request timeout analysis
"N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau
12306 ticket grabbing tutorial
Sword finger offer II 114 Alien dictionary
Docker installing PostgreSQL