oraclebeat

command module
v0.0.0-...-6d4fb29 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

README

Travis codecov.io

Oraclebeat

Oraclebeat is a beat based on metricbeat which was generated with metricbeat/metricset generator.

Getting started

To get started run the following command. This command should only be run once.

make setup

It will ask you for the module and metricset name. Insert the name accordingly.

To compile your beat run make. Then you can run the following command to see the first output:

oraclebeat -e -d "*"

In case further modules are metricsets should be added, run:

make create-metricset

After updates to the fields or config files, always run

make collect

This updates all fields and docs with the most recent changes.

Use vendoring

We recommend to use vendoring for your beat. This means the dependencies are put into your beat folder. The beats team currently uses govendor for vendoring.

govendor init
govendor update +e

This will create a directory vendor inside your repository. To make sure all dependencies for the Makefile commands are loaded from the vendor directory, find the following line in your Makefile:

ES_BEATS=${GOPATH}/src/github.com/elastic/beats

Replace it with:

ES_BEATS=./vendor/github.com/elastic/beats

Versioning

We recommend to version your repository with git and make it available on Github so others can also use your project. The initialise the git repository and add the first commits, you can use the following commands:

git init
git add README.md CONTRIBUTING.md
git commit -m "Initial commit"
git add LICENSE
git commit -m "Add the LICENSE"
git add .gitignore
git commit -m "Add git settings"
git add .
git reset -- .travis.yml
git commit -m "Add oraclebeat"

Packaging

The beat frameworks provides tools to crosscompile and package your beat for different platforms. This requires docker and vendoring as described above. To build packages of your beat, run the following command:

Check if the correct version is in version.yml

make clean
SNAPSHOT=false make package

This will fetch and create all images required for the build process. The hole process to finish can take several minutes.

TODO's

Next metricset(s):

...
Test Module

Prepare Docker Image

https://github.com/oracle/docker-images/tree/master/OracleDatabase
./buildDockerImage.sh -v 12.2.0.1 -s

Start and Execute Docker Image

make python-env
source /home/mguggi/go/src/github.com/mguggi/oraclebeat/build/python-env/bin/activate
MODULE=oracle PORT=1521 make run-module
MODULE=oracle make test-module

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package include imports all Module and MetricSet packages so that they register their factories with the global registry.
Package include imports all Module and MetricSet packages so that they register their factories with the global registry.
module
oracle
Package oracle is a Oraclebeat module that contains MetricSets.
Package oracle is a Oraclebeat module that contains MetricSets.

Jump to

Keyboard shortcuts

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