8000 docs(prometheus): 更新 Prometheus 相关文档 · andrewbytecoder/linux-note@6101e05 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6101e05

Browse files
docs(prometheus): 更新 Prometheus 相关文档
- 新增 eBPF 和 Go 语言相关文档- 更新 Prometheus 配置和规则文件 - 移除双 Prometheus 示例 - 添加 Prometheus pprof 查看火焰图的方法
1 parent ccc431f commit 6101e05

File tree

6 files changed

+44
-3
lines changed

6 files changed

+44
-3
lines changed

db/mysql/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: '3.4'
2+
3+
services:
4+
db:
5+
image: mysql
6+
container_name: mysql_container
7+
environment:
8+
MYSQL_ROOT_PASSWORD: root
9+
MYSQL_DATABASE: testdb
10+
MYSQL_USER: andrew
11+
MYSQL_PASSWORD: andrew
12+
ports:
13+
- "3306:3306" # 宿主机的3306端口映射到容器的3306端口
14+
volumes:
15+
- db_data:/var/lib/mysql
16+
restart: always
17+
18+
# 使用doker volume进行数据持久化
19+
volumes:
20+
db_data:

db/mysql/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
docker-compose up -d
4+
5+
6+
7+

db/mysql/stop.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
docker-compose down

harbor/harbor.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ goharbor/prepare v2.12.0 6eb9a653
158158
[source, bash]
159159
----
160160
[root@k8smaster-73 amd64]# pwd
161-
/home/dp/packages/YsP-1/BusinessConfig/harbor/image/amd64
161+
/home/db/packages/YsP-1/BusinessConfig/harbor/image/amd64
162162
[root@k8smaster-73 amd64]# ls
163163
harbor.v2.10.2.tar
164164
----
@@ -168,7 +168,7 @@ harbor.v2.10.2.tar
168168
[source, bash]
169169
----
170170
[root@k8smaster-73 shell]# pwd
171-
/home/dp/packages/YsP-1/BusinessConfig/harbor/shell
171+
/home/db/packages/YsP-1/BusinessConfig/harbor/shell
172172
[root@k8smaster-73 shell]# ls
173173
clean_harbor.sh connect_remote_harbor.sh harbor_pg_recover.sh install_harbor.sh upgrade_harbor.sh
174174
common.sh harbor_backup_crontab.sh harbor_redis_recover.sh scale_harbor.sh

linux/perf.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ perf list breakpoint
5353

5454
[source,bash]
5555
----
56-
[root@k8smaster-ims cdw-dp]# cat /sys/kernel/debug/tracing/events/block/block_rq_issue/format
56+
[root@k8smaster-ims cdw-db]# cat /sys/kernel/debug/tracing/events/block/block_rq_issue/format
5757
name: block_rq_issue
5858
ID: 1099
5959
format:

prometheus/kube_state_metirc.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,14 @@ image::prometheus/image-2025-01-15-11-50-41-061.png[]
2828
image::prometheus/image-2025-01-15-11-52-26-091.png[]
2929

3030
image::prometheus/image-2025-01-15-11-53-24-998.png[]
31+
32+
33+
34+
=== ALG
35+
36+
https://blog.csdn.net/weixin_51918722/article/details/146076515[ALG: alloy + loki + grafana]
37+
38+
39+
40+
41+

0 commit comments

Comments
 (0)
0