homepage/docs/widgets/services/portainer.md

22 lines
888 B
Markdown
Raw Normal View History

2023-09-29 21:01:11 +03:00
---
title: Portainer
description: Portainer Widget Configuration
---
2024-01-24 14:27:47 -08:00
Learn more about [Portainer](https://github.com/portainer/portainer).
2025-04-14 20:28:10 +01:00
If you do not include the `env` key, this will work out the combined values of all connected containers on all environments.
If you want to only show a specific environment, set the value of your environment in the yaml. From the Environments section inside of Portainer, click the one you'd like to connect to and observe the ID at the end of the URL (should be), something like `#!/endpoints/1`, here `1` is the value to set as the `env` value. In order to generate an API key, please follow the steps outlined here https://docs.portainer.io/api/access.
2023-09-29 21:01:11 +03:00
Allowed fields: `["running", "stopped", "total"]`.
```yaml
widget:
type: portainer
url: https://portainer.host.or.ip:9443
env: 1
key: ptr_accesskeyaccesskeyaccesskeyaccesskey
2023-09-29 21:01:11 +03:00
```