glance
glance copied to clipboard
Portainer widget
Description
widget to connect directly to portainer to view docker containers using API
https://docs.portainer.io/api/access.
similar to implementation in gethompage
widget:
type: portainer
url: https://portainer.host.or.ip:9443
env: 1
key: ptr_accesskeyaccesskeyaccesskeyaccesskey
Would show the running , stopped and total containers
Comes in handy if you have multiple devices on network with docker, with this you'd be able to get a quick overview of containers on that device without having a remote docker sock set up
For reference
- /api/endpoints/{env}/docker/containers/json: I don't see this one in the documentation.
- /api/kubernetes/{env}/applications/count
- /api/kubernetes/{env}/services/count
- /api/kubernetes/{env}/namespaces/count
This is how the Homepage widget for Portainer looks like (pulled from their screenshot on the website):
This widget could be easily created using the custom-api widget type! You should check it out in the docs.