Giter VIP home page Giter VIP logo

mackerel-plugin-oracle's Introduction

mackerel-plugin-oracle

Oracle custom metrics plugin for mackerel.io agent.

Synopsis

mackerel-plugin-oracle -dsn=<DSN> -event=<event> -event<event> ...

-dsn is database source name. -event is Oracle WaitEvent name.

Example of mackerel-agent.conf

[plugin.metrics.oracle]
command = [
	"/path/to/mackerel-plugin-oracle",
	"-event=Disk File Operations I/O",
	"-event=control file sequential read",
	"-event=OS Thread Startup",
	"-dsn=scott/tiger@XE"
]

mackerel-agent is executed by root user. And root user probably doesn't have Oracle setup like environment variables. If your OS use yum/rpm, add following like to load oracle_env.sh into /etc/sysconfig/mackerel-agent.

. /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh

This is an example of the case using Oracle XE 11.2.

If your OS use apt/deb, the path should be /etc/default/mackerel-agent.

https://mackerel.io/ja/docs/entry/spec/agent

Reference

You can find event name

SELECT name, wait_class FROM V$EVENT_NAME ORDER BY name;

See also: https://docs.oracle.com/database/122/REFRN/descriptions-of-wait-events.htm#REFRN-GUID-2FDDFAA4-24D0-4B80-A157-A907AF5C68E2

mackerel-plugin-oracle's People

Contributors

mattn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kmuto

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.