Skip to content

Commit

Permalink
Merge pull request #745 from kongfei605/oracle_up
Browse files Browse the repository at this point in the history
add archive_log_count for oracle
  • Loading branch information
kongfei605 authored Dec 25, 2023
2 parents c252d63 + 1a3e029 commit e869e69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions conf/input.oracle/metric.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,12 @@ timeout = "3s"
request = '''
select METRIC_NAME,VALUE from v$sysmetric where group_id=2
'''


[[metrics]]
mesurement = "archivelog"
metric_fields = [ "count" ]
timeout = "3s"
request = '''
select count(*) as count from v$archived_log group by trunc(completion_time)
'''

0 comments on commit e869e69

Please sign in to comment.