brew install prometheus
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/prometheus-2.36.0.a
curl: (22) The requested URL returned error: 404
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/prometheus/manifests/2.36.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/prometheus/blobs/sha256:06cd043
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring prometheus--2.36.0.arm64_monterey.bottle.tar.gz
==> Caveats
When run from `brew services`, `prometheus` is run from
`prometheus_brew_services` and uses the flags in:
/opt/homebrew/etc/prometheus.args
To restart prometheus after an upgrade:
brew services restart prometheus
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/prometheus/bin/prometheus_brew_services
==> Summary
🍺 /opt/homebrew/Cellar/prometheus/2.36.0: 22 files, 198.8MB
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/admin/Library/Logs/Homebrew/gmp... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/mpfr... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/gcc... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/gettext... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/zstd... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/isl... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/pcre2... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/git... (64B)
Removing: /Users/admin/Library/Logs/Homebrew/libmpc... (64B)
Pruned 0 symbolic links and 2 directories from /opt/homebrew
brew install grafana
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/grafana-8.5.4.arm64
curl: (22) The requested URL returned error: 404
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/grafana/manifests/8.5.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/grafana/blobs/sha256:16df2ad222
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring grafana--8.5.4.arm64_monterey.bottle.tar.gz
==> Caveats
To restart grafana after an upgrade:
brew services restart grafana
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/grafana/bin/grafana-server --config /opt/homebrew/etc/grafana/grafana.ini --homepath /opt/homebrew/opt/grafana/share/grafana --packaging=brew cfg:default.paths.logs=/opt/homebrew/var/log/grafana cfg:default.paths.data=/opt/homebrew/var/lib/grafana cfg:default.paths.plugins=/opt/homebrew/var/lib/grafana/plugins
==> Summary
🍺 /opt/homebrew/Cellar/grafana/8.5.4: 5,964 files, 237.8MB
==> Running `brew cleanup grafana`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
启动grafana
brew services start grafana
==> Successfully started `grafana` (label: homebrew.mxcl.grafana)