Tip
To get Moira running quickly, try /installation/docker
version
There are following components you need to install before running 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
.
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
).
- If you need to override default settings, place configuration files somewhere on your disk (e.g.
/etc/moira/
). You can dive into/installation/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 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 /installation/feeding
) on port 2003 and to create alerts in UI (see /user_guide/index
).