File tree 2 files changed +35
-0
lines changed
docker-entrypoint-initdb.d
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ services:
18
18
retries : 3
19
19
depends_on :
20
20
- redis
21
+ volumes :
22
+ - db:/var/lib/mysql
23
+ - ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
24
+
21
25
networks :
22
26
- fast-api-network
23
27
@@ -75,7 +79,33 @@ services:
75
79
- worker
76
80
networks :
77
81
- fast-api-network
82
+ pmm-server :
83
+ image : percona/pmm-server:latest
84
+ ports :
85
+ - " 443:443"
86
+ volumes :
87
+ - pmm-data:/srv
88
+ environment :
89
+ SERVER_USER : admin
90
+ SERVER_PASSWORD : admin
91
+ networks :
92
+ - fast-api-network
93
+
94
+ pmm-client :
95
+ image : percona/pmm-client:latest
96
+ environment :
97
+ PMM_SERVER : pmm-server
98
+ volumes :
99
+ - /proc:/host/proc:ro
100
+ - /sys:/host/sys:ro
101
+ - /:/host:ro
102
+ networks :
103
+ - fast-api-network
78
104
79
105
networks :
80
106
fast-api-network :
81
107
driver : bridge
108
+
109
+ volumes :
110
+ db :
111
+ pmm-data:
Original file line number Diff line number Diff line change
1
+ INSTALL PLUGIN QUERY_RESPONSE_TIME_AUDIT SONAME ' query_response_time.so' ;
2
+ INSTALL PLUGIN QUERY_RESPONSE_TIME SONAME ' query_response_time.so' ;
3
+ INSTALL PLUGIN QUERY_RESPONSE_TIME_READ SONAME ' query_response_time.so' ;
4
+ INSTALL PLUGIN QUERY_RESPONSE_TIME_WRITE SONAME ' query_response_time.so' ;
5
+ SET GLOBAL query_response_time_stats= ON ;
You can’t perform that action at this time.
0 commit comments