Prometheus is
an open-source monitoring and alerting toolkit. It collects metrics from
configured targets at given intervals, evaluates rule expressions, displays the
results, and can trigger alerts if needed.
Prerequisites
Before we begin, You should have Homebrew installed. If not install it using below command.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 1: Install Prometheus using Homebrew
Open your terminal and run:
brew install prometheus
This command will download Prometheus, and install it under Homebrew's package manager.
Step 2: To start prometheus now and restart at login:
brew services start prometheus
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/prometheus/bin/prometheus_brew_services
Upon starting the Prometheus service, open the url http://localhost:9090 in browser, you can see following screen.
To stop it:
brew services stop prometheus
No comments:
Post a Comment