open-falcon 监控oracle
时间: 2023-10-28 13:32:58 浏览: 102
您可以使用 open-falcon 的 agent 插件来监控 oracle 数据库。以下是一些常见的指标:
1. 连接数
2. 活跃会话数
3. 数据库运行时间
4. 命中率(缓存命中率、SQL 命中率等)
5. 磁盘 I/O 等待时间
6. CPU 使用率
7. 内存使用率
您可以使用 open-falcon 的 oracle 插件来采集这些指标,并将其发送到 open-falcon 的接收端,以便进行可视化和告警等操作。具体操作步骤请参考 open-falcon 官方文档。
相关问题
open falcon java_open-falcon监控java详细配置
Java应用程序的监控可以通过Open-Falcon进行配置和实现。下面是一些详细的配置步骤:
1. 下载和安装Open-Falcon Agent
在Java应用程序所在服务器上下载和安装Open-Falcon Agent。
2. 配置Open-Falcon Agent
修改Open-Falcon Agent配置文件,添加如下配置项:
```
{
"plugin": {
"enabled": true,
"dir": "/usr/local/open-falcon/agent/plugin"
},
"heartbeat": {
"enabled": true,
"addr": "127.0.0.1:6030",
"interval": 60,
"timeout": 1000
},
"transfer": {
"enabled": true,
"addrs": [
"127.0.0.1:8433"
],
"interval": 60,
"timeout": 1000
}
}
```
其中,`plugin.enabled`设置为`true`表示启用插件,`plugin.dir`设置插件所在目录。
3. 下载和安装Java插件
在Open-Falcon Agent所在服务器上下载和安装Java插件。
4. 配置Java插件
修改Java插件配置文件,添加如下配置项:
```
{
"debug": true,
"metric": {
"step": 60,
"prefix": "java."
},
"plugin": {
"jvm": {
"enabled": true,
"bin": "/usr/local/java/bin/java",
"option": "-classpath ${plugin_dir}/java-plugin.jar",
"jmx_url": "service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/jmxrmi",
"metrics": [
{
"name": "jvm.mem.heap_used",
"type": "GAUGE",
"mbean": "java.lang:type=Memory",
"attribute": "HeapMemoryUsage.used"
},
{
"name": "jvm.mem.heap_committed",
"type": "GAUGE",
"mbean": "java.lang:type=Memory",
"attribute": "HeapMemoryUsage.committed"
},
{
"name": "jvm.mem.heap_max",
"type": "GAUGE",
"mbean": "java.lang:type=Memory",
"attribute": "HeapMemoryUsage.max"
},
{
"name": "jvm.mem.non_heap_used",
"type": "GAUGE",
"mbean": "java.lang:type=Memory",
"attribute": "NonHeapMemoryUsage.used"
},
{
"name": "jvm.mem.non_heap_committed",
"type": "GAUGE",
"mbean": "java.lang:type=Memory",
"attribute": "NonHeapMemoryUsage.committed"
},
{
"name": "jvm.threads.count",
"type": "GAUGE",
"mbean": "java.lang:type=Threading",
"attribute": "ThreadCount"
},
{
"name": "jvm.threads.daemon_count",
"type": "GAUGE",
"mbean": "java.lang:type=Threading",
"attribute": "DaemonThreadCount"
},
{
"name": "jvm.threads.peak_count",
"type": "GAUGE",
"mbean": "java.lang:type=Threading",
"attribute": "PeakThreadCount"
},
{
"name": "jvm.gc.young_count",
"type": "COUNTER",
"mbean": "java.lang:type=GarbageCollector,name=PS Scavenge",
"attribute": "CollectionCount"
},
{
"name": "jvm.gc.young_time",
"type": "COUNTER",
"mbean": "java.lang:type=GarbageCollector,name=PS Scavenge",
"attribute": "CollectionTime"
},
{
"name": "jvm.gc.old_count",
"type": "COUNTER",
"mbean": "java.lang:type=GarbageCollector,name=PS MarkSweep",
"attribute": "CollectionCount"
},
{
"name": "jvm.gc.old_time",
"type": "COUNTER",
"mbean": "java.lang:type=GarbageCollector,name=PS MarkSweep",
"attribute": "CollectionTime"
}
]
}
}
}
```
其中,`plugin.jvm.enabled`设置为`true`表示启用Java插件,`plugin.jvm.bin`设置Java程序所在路径,`plugin.jvm.option`设置Java插件所在路径,`plugin.jvm.jmx_url`设置JMX URL,`plugin.jvm.metrics`设置监控指标。
5. 重启Open-Falcon Agent
修改完Open-Falcon Agent和Java插件的配置文件后,需要重启Open-Falcon Agent。
6. 查看监控数据
在Open-Falcon Web界面上查看Java应用程序的监控数据。
open-falcon docker
Open-Falcon是一个开源的云监控系统,它由前阿里巴巴工程师开发。引用中提到的open-falcon/falcon-plus是Open-Falcon的后端服务,使用Go语言编写。而引用和引用中介绍了使用Docker构建Falcon-Plus的方法。具体来说,可以通过在命令行中执行git clone命令将Open-Falcon的代码克隆到本地,然后进入代码所在的目录,执行docker build命令来构建Falcon-Plus的Docker镜像。
阅读全文