Skip to content

Commit 6c425c1

Browse files
committed
feat(fpm): update FPM README.md
1 parent f56c9d0 commit 6c425c1

File tree

8 files changed

+20
-6
lines changed

8 files changed

+20
-6
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ down-worker:
8888
docker-compose stop franken-worker
8989

9090
up-prometheus:
91-
docker-compose up -d prometheus
91+
docker-compose up -d prometheus
92+
93+
down-prometheus:
94+
docker-compose down prometheus
9295

9396
up-grafana:
9497
docker-compose up prometheus grafana -d

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,22 @@ make up-opcache-dashboard
8686
8787
open - http://localhost:42042/opcache/status
8888
89+
![img.png](docs/images/opcache-dashboard.png)
90+
8991
https://www.php.net/manual/en/opcache.configuration.php#:~:text=on%20all%20architectures.-,opcache.max_accelerated_files,-int
9092
9193
```
9294
find . -type f -name "*.php" | wc -l
9395

9496
opcache.max_accelerated_files=16087
95-
9697
```
9798
9899
### show fpm and opcache dashboard GUI
99100
100101
show fpm status page - http://localhost:8088/fpm-status
101102
103+
![img.png](docs/images/fpm-status.png)
104+
102105
```
103106
fpm.conf - pm.status_path = /fpm-status
104107
aa-nginx.conf - location ~ ^/fpm-status$ {
@@ -114,27 +117,35 @@ make ps | grep exporter
114117
115118
Go to http://localhost:9253/metrics
116119
120+
![img.png](docs/images/fpm-exporter.png)
121+
117122
```
118123
make up-prometheus
119124
make ps | grep prom
120125
```
121126
122127
Go to http://localhost:9090/targets?search=
123128
129+
![img.png](docs/images/fpm-exporter.png)
130+
124131
```
125132
make up-grafana
126133
make ps | grep grafana
127134
```
128135
136+
Go to http://localhost:3000/, choose Dashboard in the sidebar and click `PHP-FPM Performance Dashboard`
137+
138+
![img.png](docs/images/fpm-grafana.png)
139+
129140
### Show target prom sources
130141
131142
http://localhost:9090/targets?search=
132143
133144
### view grafana dashboard
134145
135146
open http://localhost:3000
136-
username: croatia
137-
password: croatia
147+
username: symfony
148+
password: symfony
138149
139150
### show grafana fpm/opcache dashboard
140151

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ services:
9999
ports:
100100
- "3000:3000"
101101
environment:
102-
GF_SECURITY_ADMIN_USER: croatia
103-
GF_SECURITY_ADMIN_PASSWORD: croatia
102+
GF_SECURITY_ADMIN_USER: symfony
103+
GF_SECURITY_ADMIN_PASSWORD: symfony
104104
volumes:
105105
- ./grafana/provisioning:/etc/grafana/provisioning:ro
106106
networks:

docs/images/fpm-exporter.png

345 KB
Loading

docs/images/fpm-grafana.png

231 KB
Loading

docs/images/fpm-status.png

36.6 KB
Loading

docs/images/opcache-dashboard.png

106 KB
Loading

docs/images/prometheus-fpm.png

210 KB
Loading

0 commit comments

Comments
 (0)