Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/mackerel-plugin-oracle
Oracle custom metrics plugin for mackerel.io agent.
https://github.com/mattn/mackerel-plugin-oracle
go golang mackerel mackerel-plugin oracle
Last synced: 3 months ago
JSON representation
Oracle custom metrics plugin for mackerel.io agent.
- Host: GitHub
- URL: https://github.com/mattn/mackerel-plugin-oracle
- Owner: mattn
- Created: 2017-12-13T15:11:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T00:21:10.000Z (about 7 years ago)
- Last Synced: 2024-10-04T19:51:39.039Z (3 months ago)
- Topics: go, golang, mackerel, mackerel-plugin, oracle
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mackerel-plugin-oracle
======================Oracle custom metrics plugin for mackerel.io agent.
## Synopsis
```shell
mackerel-plugin-oracle -dsn= -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`.
## Reference
You can find event name
```
SELECT name, wait_class FROM V$EVENT_NAME ORDER BY name;
```See also: