Giter Club home page Giter Club logo

sqlcollector's Introduction

sqlcollector

SQLCollector is an agent metric collector. It collects information about the database performance and saves it into InfluxDB.

For the first version SQLCollector gets the performance of one or several Oracle databases and saves this information into one or several Influx databases.

You must configure the connection for source and destination databases and the queries to do in source databases to get the performance information.

It works as a daemon and the frequency used for doing the queries must be configured.

Different logFiles and logLevels can be specified for each source database and also for self monitoring.

The configuration must be done into an xml file.

If you want a different name and/or path for this file than resources/conf/SQLCollector.xml it can be specified with the system parameter sqlcollector.configurationFile (it can be passed in with -Dsqlcollector.configurationFile when calling jar from command line).

Docker

You can get a docker with the last version from docker store.

Get docker

docker pull rsolorzano2410/sqlcollector

Using this image

This image has been built FROM anapsix/alpine-java (an AlpineLinux with a glibc-2.27-r0 and Oracle Java 8) including the executable jar file SQLCollector.jar which is the agent metrics collector.

Running the container

First you must get the configuration file and modify it with your settings.

You can get the configuration file with this command:

docker run -it --rm rsolorzano2410/sqlcollector cat /opt/sqlcollector/conf/SQLCollector.xml > SQLCollector.xml

This file must be modified with your settings and copied into the path you prefer.

Then you can start the container with this command:

docker run --name $CONTAINER_NAME \
			-v $CONTAINER_VOL_LOG:/opt/sqlcollector/log \
			-v $CONTAINER_VOL_CONF:/opt/sqlcollector/conf \
			-d rsolorzano2410/sqlcollector

Modify $CONTAINER_NAME with the name you want to assign to the container.

Modify $CONTAINER_VOL_LOG and $CONTAINER_VOL_CONF with the directory where you want to store the log files and the configuration file, respectively.

sqlcollector's People

Contributors

rsolorzano2410 avatar

Stargazers

Sergei Sukhorukov avatar  avatar  avatar Toni Moreno avatar

Watchers

Toni Moreno avatar  avatar  avatar  avatar

sqlcollector's Issues

Add IntervalSecs on Measurements

Hello,

Add the ability to define a frequency at the measurement level instead of the database only.

For example, I added a measure of the space available from a tablespace. For this metric, the frequency of a minute is far too fast. For this type of metric, a frequency of 24 hours is largely sufficient.

XaV

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.