hi, i run `docker run -d -p 7000:7000 -p 8000:8000...
# permit-saas
h
hi, i run
docker run -d -p 7000:7000 -p 8000:8000 --name permit-pdp -e PDP_API_KEY=permit_key permitio/pdp-v2:latest
but cant see pdp status in Monitoring tab in app.permit.io @permit support automation2
hi @Ask Inkeep help me
a
Thanks for tagging me @Huy. I'll look through relevant sources and get back to you shortly.
I notice there's an issue with your Docker command. The correct port mapping should expose port 7766 on your host machine, not 7000. (1) (2) The correct command should be:
Copy code
docker run -it -p 7766:7000 --env PDP_DEBUG=True --env PDP_API_KEY=<YOUR_API_KEY> permitio/pdp-v2:latest
Key differences from your command: • Use
-p 7766:7000
instead of
-p 7000:7000
(the PDP listens on port 7000 internally but is typically exposed on 7766) • Remove the
-p 8000:8000
mapping (port 8181 is for OPA API if needed, not 8000) (3) • Add
PDP_DEBUG=True
for detailed logging (1) (2) • Use
-it
instead of
-d
initially to see the logs and confirm connection After running this command, you can verify the container is running with
docker ps
and check logs with
docker logs <container_id>
. (1) To help investigate why your PDP isn't showing in the Monitoring tab, could you provide: 1. Which Workspace / Project / Environment you are using 2. Which PDP version you are running (the tag after
permitio/pdp-v2:
) 3. The relevant logs from your PDP container
To learn more, see the sources I considered: [[1] Run Local Authorization Microservice | Permit.io Documentation](https://docs.permit.io/overview/local-authorization-microservice) [[2] Run the PDP (Policy Decision Point)](https://docs.permit.io/overview/run-pdp) [[3] Permit's PDP (Policy Decision Point)](https://docs.permit.io/concepts/pdp/overview)
d
Hi @Huy, the AI Agent gave a nice answer. If you have any further questions, let me know 🙂
h
I'm trying to monitor my PDP but can't find any online status on the Monitoring tab
d
The monitoring page is more of a statistical feature as opposed to a real-time analysis