-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Labels
bugBug reportBug report
Description
Description
Attempting to add an external service with scheme https fails with status code 400. As shown in the logs below, despite using the https scheme, the request is sent as http resulting in a 400 Bad Request error. This is for an internal app with a builtin Prometheus exporter so we were able to work around by exposing the Prometheus endpoint over HTTP on a different port but that's not an ideal solution.
Expected Results
Adding an https service should use https for the requests.
Actual Results
Adding an https external service results in http requests.
Version
# docker exec -it pmm-server pmm-admin --version
ProjectName: pmm-admin
Version: 3.5.0
PMMVersion: 3.5.0
Timestamp: 2025-11-14 22:24:53 (UTC)
FullCommit: 586a9227547b4991e5ee3edf793dcd22b6c08117
Steps to reproduce
- Add an external service via the web ui
- Either parse from url or manually
- Ensure the URL is https:// or the HTTPS schema is selected
- Add Service
- Observe
Connection check failed: Unexpected HTTP status code: 400. Expected: 200.
Relevant logs
==> pmm/logs/pmm-managed.log <==
time="2026-01-15T14:41:24.010+00:00" level=info msg="Starting RPC /management.v1.ManagementService/AddService ..." request=<REQUEST_ID>
time="2026-01-15T14:41:24.033+00:00" level=info msg="CheckConnectionRequest: type: SERVICE_TYPE_EXTERNAL_SERVICE, DSN: http://<HOST>:443/metrics timeout: seconds:3." request=<REQUEST_ID>
time="2026-01-15T14:41:24.056+00:00" level=info msg="CheckConnection response: error:\"Unexpected HTTP status code: 400. Expected: 200\"." request=<REQUEST_ID>
time="2026-01-15T14:41:24.057+00:00" level=warning msg="RPC /management.v1.ManagementService/AddService done in 46.202872ms with gRPC error: rpc error: code = FailedPrecondition desc = Connection check failed: Unexpected HTTP status code: 400. Expected: 200." request=<REQUEST_ID>Code of Conduct
- I agree to follow Percona Community Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBug reportBug report