Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. cat /opt/prom_exporters/database_exporter.yml
  2. # Global defaults.
  3. global:
  4. # Subtracted from Prometheus' scrape_timeout to give us some headroom and prevent Prometheus from timing out first.
  5. scrape_timeout_offset: 500ms
  6. # Minimum interval between collector runs: by default (0s) collectors are executed on every scrape.
  7. min_interval: 0s
  8. # Maximum number of open connections to any one target. Metric queries will run concurrently on multiple connections,
  9. # as will concurrent scrapes.
  10. max_connections: 3
  11. # Maximum number of idle connections to any one target. Unless you use very long collection intervals, this should
  12. # always be the same as max_connections.
  13. max_idle_connections: 3
  14.  
  15. jobs:
  16. - job_name: main
  17. static_configs:
  18. - targets:
  19. instance: 'oracle://user/pass@host:1521/sid'
  20.  
  21. collectors: [base]
  22.  
  23. # Collector files specifies a list of globs. One collector definition is read from each matching file.
  24. collector_files:
  25. - '/opt/prom_exporters/config/oracle_collectors/*.collector.yml'
  26.  
  27. cat /opt/prom_exporters/config/oracle_collectors/oracle.collector.yml
  28. # A collector defining standard metrics for Oracle Database Server.
  29. #
  30. #
  31.  
  32. collector_name: base
  33.  
  34. # Similar to global.min_interval, but applies to the queries defined by this collector only.
  35. #min_interval: 0s
  36.  
  37. metrics:
  38. - metric_name: version
  39. type: gauge
  40. help: 'help'
  41. values:
  42. - VERSION
  43. query: |
  44. SELECT VERSION FROM DUAL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement