grafana charm has "port" option, but port 3000 is hardcoded in the template
Bug #1684523 reported by
Nobuto Murata
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grafana Charm |
Fix Released
|
Medium
|
Joe Guo |
Bug Description
[config.yaml]
port:
type: string
default: "3000"
description: |
The port grafana will expose web services on.
[templates/
[server]
# Protocol (http or https)
;protocol = http
# The ip address to bind to, empty will bind to all interfaces
http_addr = 0.0.0.0
# The http port to use
http_port = 3000
Changed in grafana-charm: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in charm-grafana: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
The template now says:
http_port = {{ config['port'] }}
We should confirm this works as expected and can then close out the bug.
Somewhat related, there seems to be a mix of config styles here e.g. {{ config.root_url }}, {{ config['port'] }}. Consistency would be good.