Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. 1 instances:
  2. 2 - host: localhost
  3. 3 port: 8009
  4. 4 user: tomcat
  5. 5 password: xxxxx
  6. 6 # process_name_regex: .*process_name.* # Instead of specifying a host, and port. The agent can connect using the attach api.
  7. 7 # # This requires the JDK to be installed and the path to tools.jar to be set below.
  8. 8 # tools_jar_path: /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar # To be set when process_name_regex is set
  9. 9 # name: tomcat_instance
  10. 10 # # java_bin_path: /path/to/java # Optional, should be set if the agent cannot find your java executable
  11. 11 # # java_options: "-Xmx200m -Xms50m" # Optional, Java JVM options
  12. 12 # # trust_store_path: /path/to/trustStore.jks # Optional, should be set if ssl is enabled
  13. 13 # # trust_store_password: password
  14. 14 # tags:
  15. 15 # env: stage
  16. 16 # newTag: test
  17. 17
  18. 18 # List of metrics to be collected by the integration
  19. 19 # Read http://docs.datadoghq.com/integrations/java/ to learn how to customize it
  20. 20 init_config:
  21. 21 conf:
  22. 22 - include:
  23. 23 type: ThreadPool
  24. 24 attribute:
  25. 25 maxThreads:
  26. 26 alias: tomcat.threads.max
  27. 27 metric_type: gauge
  28. 28 currentThreadCount:
  29. 29 alias: tomcat.threads.count
  30. 30 metric_type: gauge
  31. 31 currentThreadsBusy:
  32. 32 alias: tomcat.threads.busy
  33. 33 metric_type: gauge
  34. 34 - include:
  35. 35 type: GlobalRequestProcessor
  36. 36 attribute:
  37. 37 bytesSent:
  38. 38 alias: tomcat.bytes_sent
  39. 39 metric_type: counter
  40. 40 bytesReceived:
  41. 41 alias: tomcat.bytes_rcvd
  42. 42 metric_type: counter
  43. 43 errorCount:
  44. 44 alias: tomcat.error_count
  45. 45 metric_type: counter
  46. 46 requestCount:
  47. 47 alias: tomcat.request_count
  48. 48 metric_type: counter
  49. 49 maxTime:
  50. 50 alias: tomcat.max_time
  51. 51 metric_type: gauge
  52. 52 processingTime:
  53. 53 alias: tomcat.processing_time
  54. 54 metric_type: counter
  55. 55 - include:
  56. 56 j2eeType: Servlet
  57. 57 attribute:
  58. 58 processingTime:
  59. 59 alias: tomcat.servlet.processing_time
  60. 60 metric_type: counter
  61. 61 errorCount:
  62. 62 alias: tomcat.servlet.error_count
  63. 63 metric_type: counter
  64. 64 requestCount:
  65. 65 alias: tomcat.servlet.request_count
  66. 66 metric_type: counter
  67. 67 - include:
  68. 68 type: Cache
  69. 69 accessCount:
  70. 70 alias: tomcat.cache.access_count
  71. 71 metric_type: counter
  72. 72 hitsCounts:
  73. 73 alias: tomcat.cache.hits_count
  74. 74 metric_type: counter
  75. 75 - include:
  76. 76 type: JspMonitor
  77. 77 jspCount:
  78. 78 alias: tomcat.jsp.count
  79. 79 metric_type: counter
  80. 80 jspReloadCount:
  81. 81 alias: tomcat.jsp.reload_count
  82. 82 metric_type: counter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement