Manual Installation¶
Tip
To get Moira running quickly, try Docker version
There are following components you need to install before running Moira microservices:
Build Moira Microservices¶
go get -u github.com/moira-alert/moira
cd $GOPATH/src/github.com/moira-alert/moira
make build
You will find binaries in $GOPATH/src/github.com/moira-alert/moira/build
.
Download Web UI Application¶
https://github.com/moira-alert/web2.0/releases/latest
Download and unpack .tar.gz
file into Nginx static
files directory (e.g. /var/local/www/moira
).
Configure¶
If you need to override default settings, place configuration files somewhere on your disk (e.g.
/etc/moira/
). You can dive into Configuration syntax on a separate page.Place nginx configuration file to proper location (e.g.
/etc/nginx/conf.d/moira.conf
):
server {
listen 127.0.0.1:80;
location / {
root /var/local/www/moira;
index index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://127.0.0.1:8081;
}
}
3. If you need to override UI settings, edit web.json file. You can find its location in API configuration.
Run¶
Run nginx and redis-server
Run microservices
$GOPATH/src/github.com/moira-alert/moira/build/cache
$GOPATH/src/github.com/moira-alert/moira/build/checker
$GOPATH/src/github.com/moira-alert/moira/build/notifier
$GOPATH/src/github.com/moira-alert/moira/build/api
Now you need to feed your metrics to Moira (see Feeding Metrics to Moira) on port 2003 and to create alerts in UI (see User Guide).