You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4.2 KiB
4.2 KiB
Manual Windows Install
This guide is specifically for people who are on a Windows machine using WSL with Docker.
Scrutiny is made up of three components: an influxdb Database, a collector and a webapp/api. Docker will be used for the influxdb and webapp/API, the collector component will be facilitated by Windows Task Scheduler.
NOTE: If you are NOT using WSL with docker, then the easiest way to get started with Scrutiny is the omnibus Docker image.
InfluxDB and Webapp/API (Docker)
- Copy the example.hubspoke.docker-compose.yml file and delete the collector section near the bottom of the file.
- Run
docker-compose up -d
to verify that the DB and webapp are working correctly and once its completed, your webapp should be up and running but the dashboard will be empty (default location islocalhost:8080
)
Collector (Windows Task Scheduler)
- Download the latest
scrutiny-collector-metrics-windows-amd64.exe
from the releases page (under assets) - On your windows host, open Windows Task Scheduler as Administrator
- In the Start Menu (Windows key), type
Task Scheduler
and then right clickRun as Administrator
to open
- In the Start Menu (Windows key), type
- On the status bar (under the
action
tab), clickCreate Task...
- A new window should open with the
General
Tab open, enter relevant information into theName
andDescription
fields- Under Security Options check:
- Run whether user is logged on or not
- Run with highest privileges
- Under Security Options check:
- Next, click the
Triggers
tab and then clickNew...
(bottom left-hand side of the window) - Here you can set how often you want this task to run, example settings are the following:
- Settings:
Daily
, start atTODAYS_DATE
12:00:00 AM
, Recur every1
days,
- Advanced Settings:
- Repeat Task every:
1 hour
for a duration ofIndefinitely
- Stop task if it runs longer than:
30 minutes
- Repeat Task every:
- Click Ok when satisfied with your schedule
NOTE: The above settings will trigger the task every day at midnight and then run every hour after that (modify as needed)
- Settings:
- Next, click the
Actions
tab and then clickNew...
(bottom left-hand side of the window)- Action Settings:
- In the Program/Script field, put:
scrutiny-collector-metrics-windows-amd64.exe
- In the Add arguments (optional) field, put:
run --api-endpoint "http://localhost:8080" --config collector.yaml
NOTE:
- Make sure that you put the correct port number (as specified in the docker-compose file) for the webapp (default is
8080
) - The
--config
param is optional and is not needed if you just want to use the default collector config, see example.collector.yaml for more info on the collector config.
- Make sure that you put the correct port number (as specified in the docker-compose file) for the webapp (default is
- In the Start in (optional) field, put: FOLDER_PATH_TO_YOUR
scrutiny-collector-metrics-windows-amd64.exe
fileNOTE: Must be exact and do not include
scrutiny-collector-metrics-windows-amd64.exe
in the path - Click Ok when finished
- In the Program/Script field, put:
- Action Settings:
- Next, click the
Conditions
tab and make sure that everything is unchecked (unless you want to specify otherwise) - Next, click the
Settings
tab and check everything except for the last checkbox- Examples for the following settings:
- If the task fails, restart every:
5 minutes
- Attempt restart up to:
3
times - Stop the task if it runs longer than
1 hour
- If the task fails, restart every:
- Examples for the following settings:
- Next, once satisfied with everything, click Ok
- Then, find your newly created task (by its name) in the scheduler task list and then manually run it (right click it and then click
Run
) - Finally, refresh your dashboard after a minute or two and your drive information should have populated the webapp dashboard.