Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SNAP_PATH in documentation #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@ Example running ping collector and writing data to a file.

Make sure that your `$SNAP_PATH` is set, if not:
```
$ export SNAP_PATH=<snapDirectoryPath>/build
$ export SNAP_PATH=<snapDirectoryPath>/build/linux/x86_64
```
Other paths to files should be set according to your configuration, using a file you should indicate where it is located.


In one terminal window, open the snap daemon (in this case with logging set to 1, trust disabled and global configuration saved in config.json ):
```
$ $SNAP_PATH/bin/snapteld -l 1 -t 0 --config config.json
$ $SNAP_PATH/snapteld -l 1 -t 0 --config config.json
```

In another terminal window:
Load ping plugin
```
$ $SNAP_PATH/bin/snaptel plugin load snap-plugin-collector-ping
$ $SNAP_PATH/snaptel plugin load snap-plugin-collector-ping
```
See available metrics for your system
```
$ $SNAP_PATH/bin/snaptel metric list
$ $SNAP_PATH/snaptel metric list
```

Create a task manifest file (exemplary files in [examples/tasks/] (https://github.com/raintank/snap-plugin-collector-ping/blob/master/examples/tasks/)):
Expand Down Expand Up @@ -108,7 +108,7 @@ Create a task manifest file (exemplary files in [examples/tasks/] (https://gith
```
Load file plugin for publishing:
```
$ $SNAP_PATH/bin/snaptel plugin load $SNAP_PATH/plugin/snap-plugin-publisher-file
$ $SNAP_PATH/snaptel plugin load $SNAP_PATH/plugin/snap-plugin-publisher-file
Plugin loaded
Name: file
Version: 3
Expand All @@ -119,7 +119,7 @@ Loaded Time: Fri, 20 Nov 2015 11:41:39 PST

Create a task:
```
$ $SNAP_PATH/bin/snaptel task create -t examples/tasks/ping-file.json
$ $SNAP_PATH/snaptel task create -t examples/tasks/ping-file.json
Using task manifest to create task
Task created
ID: 02dd7ff4-8106-47e9-8b86-70067cd0a850
Expand All @@ -129,7 +129,7 @@ State: Running

Stop previously created task:
```
$ $SNAP_PATH/bin/snaptel task stop 02dd7ff4-8106-47e9-8b86-70067cd0a850
$ $SNAP_PATH/snaptel task stop 02dd7ff4-8106-47e9-8b86-70067cd0a850
Task stopped:
ID: 02dd7ff4-8106-47e9-8b86-70067cd0a850
```
Expand Down