Skip to content

Commit 56e0eb8

Browse files
committed
Text fix, code comments
1 parent 8e846e3 commit 56e0eb8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/plugins/metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Metrics Plugin
33
---
44

55
# Metrics Plugin
6-
Prometheus-compatible metrics endpoint for monitoring server performance and tracking custom application metrics.
6+
Prometheus-compatible metrics exporter for monitoring server performance and tracking custom application metrics.
77
The plugin supports **Counter**, **Gauge**, **Histogram**, and **Summary** metric types.
88

99
## Installation

src/components/LandingPage/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ use PHPStreamServer\\Plugin\\HttpServer\\Worker\\HttpServerProcess;
107107
$server = new Server();
108108
109109
$server->addPlugin(
110-
new HttpServerPlugin(),
110+
new HttpServerPlugin(), // Register the HTTP server plugin
111111
);
112112
113113
$server->addWorker(
114114
new HttpServerProcess(
115-
listen: '0.0.0.0:8080',
116-
count: 2,
115+
listen: '0.0.0.0:8080', // Address to listen on
116+
count: 2, // Number of worker processes
117117
onRequest: function (Request $request): Response {
118118
return match ($request->getUri()->getPath()) {
119119
'/' => new Response(body: 'Hello world'),

0 commit comments

Comments
 (0)