arunk-kumar commented on PR #10945:
URL: https://github.com/apache/ozone/pull/10945#issuecomment-5176592046
Verified end-to-end in the docker compose environment with `monitoring.yaml`
included.
**1. `/prom` endpoint on httpfs (port 14000) returns Prometheus-format
metrics:**
```
# TYPE httpfsserver_bytes_read counter
httpfsserver_bytes_read{sessionid="null",context="httpfs",hostname="0f6476c9d1f2"}
0
# TYPE http_server2_metrics_http_server_thread_count gauge
http_server2_metrics_http_server_thread_count{context="HttpServer2",server_name="webhdfs"}
8
```
**2. Prometheus target health — httpfs scraped successfully:**
```json
"scrapeUrl": "http://httpfs:14000/prom?user.name=hadoop",
"health": "up",
"lastError": "",
"lastScrape": "2026-08-04T08:05:03.987196928Z"
```
**3. httpfs `up` metric in Prometheus (value = 1):**
```json
{"__name__": "up", "component": "httpfs", "instance": "httpfs:14000", "job":
"ozone-httpfs"} = 1
```
**4. httpfs-specific metric queryable from Prometheus:**
```json
{"__name__": "httpfsserver_bytes_read", "component": "httpfs", "instance":
"httpfs:14000"} = 0
```
**Note on prometheus.yml:** `HttpFSAuthenticationFilter` requires a user
identity even in non-secure mode, so httpfs is configured as a separate
`ozone-httpfs` job with `params: user.name: [hadoop]`. Other services don't
need this because their `/prom` endpoints bypass the auth filter.
**On acceptance tests:** the existing `prometheus_check.py` smoketest
validates all running Prometheus targets generically — it will automatically
cover httpfs once this PR merges, with no changes to the test needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]