metadata.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: oracledb
  6. monitored_instance:
  7. name: Oracle DB
  8. link: "https://docs.oracle.com/en/database/oracle/oracle-database/"
  9. categories:
  10. - data-collection.database-servers
  11. icon_filename: "oracle.svg"
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - database
  19. - oracle
  20. - data warehouse
  21. - SQL
  22. most_popular: false
  23. overview:
  24. data_collection:
  25. metrics_description: "This collector monitors OracleDB database metrics about sessions, tables, memory and more."
  26. method_description: "It collects the metrics via the supported database client library"
  27. supported_platforms:
  28. include: []
  29. exclude: []
  30. multi_instance: true
  31. additional_permissions:
  32. description: |
  33. In order for this collector to work, it needs a read-only user `netdata` in the RDBMS.
  34. default_behavior:
  35. auto_detection:
  36. description: "When the requirements are met, databases on the local host on port 1521 will be auto-detected"
  37. limits:
  38. description: ""
  39. performance_impact:
  40. description: ""
  41. setup:
  42. prerequisites:
  43. list:
  44. - title: Install the python-oracledb package
  45. description: |
  46. You can follow the official guide below to install the required package:
  47. Source: https://python-oracledb.readthedocs.io/en/latest/user_guide/installation.html
  48. - title: Create a read only user for netdata
  49. description: |
  50. Follow the official instructions for your oracle RDBMS to create a read-only user for netdata. The operation may follow this approach
  51. Connect to your Oracle database with an administrative user and execute:
  52. ```bash
  53. CREATE USER netdata IDENTIFIED BY <PASSWORD>;
  54. GRANT CONNECT TO netdata;
  55. GRANT SELECT_CATALOG_ROLE TO netdata;
  56. ```
  57. - title: Edit the configuration
  58. description: |
  59. Edit the configuration troubleshooting:
  60. 1. Provide a valid user for the netdata collector to access the database
  61. 2. Specify the network target this database is listening.
  62. configuration:
  63. file:
  64. name: "python.d/oracledb.conf"
  65. options:
  66. description: |
  67. There are 2 sections:
  68. * Global variables
  69. * One or more JOBS that can define multiple different instances to monitor.
  70. The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
  71. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  72. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  73. folding:
  74. title: "Config options"
  75. enabled: true
  76. list:
  77. - name: update_every
  78. description: Sets the default data collection frequency.
  79. default_value: 5
  80. required: false
  81. - name: priority
  82. description: Controls the order of charts at the netdata dashboard.
  83. default_value: 60000
  84. required: false
  85. - name: autodetection_retry
  86. description: Sets the job re-check interval in seconds.
  87. default_value: 0
  88. required: false
  89. - name: penalty
  90. description: Indicates whether to apply penalty to update_every in case of failures.
  91. default_value: yes
  92. required: false
  93. - name: user
  94. description: The username for the user account.
  95. default_value: no
  96. required: true
  97. - name: password
  98. description: The password for the user account.
  99. default_value: no
  100. required: true
  101. - name: server
  102. description: The IP address or hostname (and port) of the Oracle Database Server.
  103. default_value: no
  104. required: true
  105. - name: service
  106. description: The Oracle Database service name. To view the services available on your server run this query, `select SERVICE_NAME from gv$session where sid in (select sid from V$MYSTAT)`.
  107. default_value: no
  108. required: true
  109. - name: protocol
  110. description: one of the strings "tcp" or "tcps" indicating whether to use unencrypted network traffic or encrypted network traffic
  111. default_value: no
  112. required: true
  113. examples:
  114. folding:
  115. enabled: true
  116. title: "Config"
  117. list:
  118. - name: Basic
  119. folding:
  120. enabled: false
  121. description: A basic example configuration, two jobs described for two databases.
  122. config: |
  123. local:
  124. user: 'netdata'
  125. password: 'secret'
  126. server: 'localhost:1521'
  127. service: 'XE'
  128. protocol: 'tcps'
  129. remote:
  130. user: 'netdata'
  131. password: 'secret'
  132. server: '10.0.0.1:1521'
  133. service: 'XE'
  134. protocol: 'tcps'
  135. troubleshooting:
  136. problems:
  137. list: []
  138. alerts: []
  139. metrics:
  140. folding:
  141. title: Metrics
  142. enabled: false
  143. description: "These metrics refer to the entire monitored application."
  144. availability: []
  145. scopes:
  146. - name: global
  147. description: ""
  148. labels: []
  149. metrics:
  150. - name: oracledb.session_count
  151. description: Session Count
  152. unit: "sessions"
  153. chart_type: line
  154. dimensions:
  155. - name: total
  156. - name: active
  157. - name: oracledb.session_limit_usage
  158. description: Session Limit Usage
  159. unit: "%"
  160. chart_type: area
  161. dimensions:
  162. - name: usage
  163. - name: oracledb.logons
  164. description: Logons
  165. unit: "events/s"
  166. chart_type: area
  167. dimensions:
  168. - name: logons
  169. - name: oracledb.physical_disk_read_writes
  170. description: Physical Disk Reads/Writes
  171. unit: "events/s"
  172. chart_type: area
  173. dimensions:
  174. - name: reads
  175. - name: writes
  176. - name: oracledb.sorts_on_disks
  177. description: Sorts On Disk
  178. unit: "events/s"
  179. chart_type: line
  180. dimensions:
  181. - name: sorts
  182. - name: oracledb.full_table_scans
  183. description: Full Table Scans
  184. unit: "events/s"
  185. chart_type: line
  186. dimensions:
  187. - name: full table scans
  188. - name: oracledb.database_wait_time_ratio
  189. description: Database Wait Time Ratio
  190. unit: "%"
  191. chart_type: line
  192. dimensions:
  193. - name: wait time ratio
  194. - name: oracledb.shared_pool_free_memory
  195. description: Shared Pool Free Memory
  196. unit: "%"
  197. chart_type: line
  198. dimensions:
  199. - name: free memory
  200. - name: oracledb.in_memory_sorts_ratio
  201. description: In-Memory Sorts Ratio
  202. unit: "%"
  203. chart_type: line
  204. dimensions:
  205. - name: in-memory sorts
  206. - name: oracledb.sql_service_response_time
  207. description: SQL Service Response Time
  208. unit: "seconds"
  209. chart_type: line
  210. dimensions:
  211. - name: time
  212. - name: oracledb.user_rollbacks
  213. description: User Rollbacks
  214. unit: "events/s"
  215. chart_type: line
  216. dimensions:
  217. - name: rollbacks
  218. - name: oracledb.enqueue_timeouts
  219. description: Enqueue Timeouts
  220. unit: "events/s"
  221. chart_type: line
  222. dimensions:
  223. - name: enqueue timeouts
  224. - name: oracledb.cache_hit_ration
  225. description: Cache Hit Ratio
  226. unit: "%"
  227. chart_type: stacked
  228. dimensions:
  229. - name: buffer
  230. - name: cursor
  231. - name: library
  232. - name: row
  233. - name: oracledb.global_cache_blocks
  234. description: Global Cache Blocks Events
  235. unit: "events/s"
  236. chart_type: area
  237. dimensions:
  238. - name: corrupted
  239. - name: lost
  240. - name: oracledb.activity
  241. description: Activities
  242. unit: "events/s"
  243. chart_type: stacked
  244. dimensions:
  245. - name: parse count
  246. - name: execute count
  247. - name: user commits
  248. - name: user rollbacks
  249. - name: oracledb.wait_time
  250. description: Wait Time
  251. unit: "ms"
  252. chart_type: stacked
  253. dimensions:
  254. - name: application
  255. - name: configuration
  256. - name: administrative
  257. - name: concurrency
  258. - name: commit
  259. - name: network
  260. - name: user I/O
  261. - name: system I/O
  262. - name: scheduler
  263. - name: other
  264. - name: oracledb.tablespace_size
  265. description: Size
  266. unit: "KiB"
  267. chart_type: line
  268. dimensions:
  269. - name: a dimension per active tablespace
  270. - name: oracledb.tablespace_usage
  271. description: Usage
  272. unit: "KiB"
  273. chart_type: line
  274. dimensions:
  275. - name: a dimension per active tablespace
  276. - name: oracledb.tablespace_usage_in_percent
  277. description: Usage
  278. unit: "%"
  279. chart_type: line
  280. dimensions:
  281. - name: a dimension per active tablespace
  282. - name: oracledb.allocated_size
  283. description: Size
  284. unit: "B"
  285. chart_type: line
  286. dimensions:
  287. - name: a dimension per active tablespace
  288. - name: oracledb.allocated_usage
  289. description: Usage
  290. unit: "B"
  291. chart_type: line
  292. dimensions:
  293. - name: a dimension per active tablespace
  294. - name: oracledb.allocated_usage_in_percent
  295. description: Usage
  296. unit: "%"
  297. chart_type: line
  298. dimensions:
  299. - name: a dimension per active tablespace