server

command module
v0.0.0-...-afa88ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

Server

Build StatusLicense

This project serves as an API server that proxies profiling data requests from an agent and inserts them (via a Driver) to a given database backend.

Installation

To get started, be sure you have Go 1.7 or higher installed and a local version of ElasticSearch or MongoDB running.

Step 1: Get source

We first need to go get the source for the project:

go get github.com/auto-profile/server
Step 2: Build

We can now run a build:

cd $GOPATH/src/github.com/auto-profile/server && go build
Step 3: Create configuration file

In order for the server to connect to one of the backend databases with the drivers we have available, we must specify a configuration file. A sample MongoDB config.json file might look something like:

{
    "driver": "mongo",
    "hostname": "127.0.0.1",
    "port": "27017"
}
Step 4: Run the server

We can now run our local server and point it to the configuration file:

./server -configPath ./config.json

And with that, your server is now able to receive requests from an agent at http://127.0.0.1:8080!

Drivers

Because of the variable nature of profiling data, NoSQL backends seem to fit nicely. We currently have supported ElasticSearch and MongoDB drivers.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL