canonical / grafana-agent-k8s-operator

This charmed operator automates the operational procedures of running Grafana Agent, an open-soruce telemetry collector.
https://charmhub.io/grafana-agent-k8s
Apache License 2.0
8 stars 18 forks source link

add open port support #287

Closed lucabello closed 4 months ago

lucabello commented 4 months ago

Issue

Use ops.Unit.open_port for the port to show up in Juju status.

Due to a Juju bug, it might not show up there yet; use juju exec <unit> -- opened-ports to verify.

Testing Instructions

charmcraft pack
juju deploy ./grafana-agent-k8s_ubuntu-22.04-amd64.charm agent
# Wait for the charm
juju exec --unit agent/0 -- opened-ports