Skip to content

Support modern Grafana binary name and new default homebrew location#142

Open
trondn wants to merge 1 commit into
couchbaselabs:masterfrom
trondn:modern-grafana-homebrew
Open

Support modern Grafana binary name and new default homebrew location#142
trondn wants to merge 1 commit into
couchbaselabs:masterfrom
trondn:modern-grafana-homebrew

Conversation

@trondn
Copy link
Copy Markdown

@trondn trondn commented May 29, 2026

Modern Grafana (v9+) renamed grafana-server to grafana with server as a subcommand. Also update the default darwin grafana-home path to detect /opt/homebrew where it is installed by defult these days, falling back to /usr/local

Modern Grafana (v9+) renamed grafana-server to grafana with server as
a subcommand. Also update the default darwin grafana-home path to
detect /opt/homebrew where it is installed by defult these days,
falling back to /usr/local
Copilot AI review requested due to automatic review settings May 29, 2026 09:13
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Promtimer to support modern Grafana (v9+) which renamed the grafana-server binary to grafana with a server subcommand, and updates the macOS default grafana-home to detect Homebrew's new /opt/homebrew location with fallback to /usr/local.

Changes:

  • start_grafana() now appends server subcommand unless the binary is the legacy grafana-server.
  • --grafana-install-path prefers bin/grafana with fallback to legacy bin/grafana-server; default PATH binary is now grafana.
  • macOS default Grafana home prefers /opt/homebrew/share/grafana when present, falling back to /usr/local/share/grafana; help text updated.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@dave-finlay dave-finlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. Just a couple of minor comments.

Comment thread promtimer/promtimer.py
@@ -198,9 +198,13 @@
:return: a Process instance wrapping the underlying process handle
"""
name = 'grafana-server'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this "name" variable too to be "grafana server". It's just used for logging as as the name for the started Process so we could leave it be. But if we're making this change to move to start a "grafana server" (as it were) rather than a "grafana-server", then I think it makes sense to change this name too.

Comment thread promtimer/promtimer.py

def start_grafana(grafana_bin, grafana_home_path, grafana_port):
"""
Starts grafana-server wthe the specified home path listening to the specfied
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also change this comment too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants