Parth6288

process.yaml

Apr 24th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. init_config:
  2. # the check will refresh the matching pid list every X seconds
  3. # except if it detects a change before. You might want to set it
  4. # low if you want to alert on process service checks.
  5. # pid_cache_duration: 120
  6. #
  7. # used to override the default procfs path, e.g. for docker containers with the outside fs mounted at /host/proc
  8. # DEPRECATED: please specify `procfs_path` globally in `datadog.conf` instead
  9. # procfs_path: /proc
  10.  
  11. instances:
  12. - name: IIS Worker Process
  13. search_string: ['w3wp.exe']
  14. # The `system.processes.cpu.pct` metric sent by this check is only accurate for processes that live
  15. # for more than 30 seconds. Do not expect its value to be accurate for shorter-lived processes.
  16. #
  17. # One and only one of search_string, pid or pid_file must be specified
  18. # - name: (required) STRING. It will be used to uniquely identify your metrics as they will be tagged with this name
  19. # search_string: LIST OF STRINGS. If one of the elements in the list matches,
  20. # return the counter of all the processes that contain the string
  21. # pid: STRING. A Process id.
  22. # pid_file: STRING. A Pid file.
  23. # exact_match: (optional) Boolean. Default value of True matches your search_string on proc.name().
  24. # If you want to match on a substring within proc.cmdline(), set this to False
  25. # https://docs.datadoghq.com/agent/faq/i-have-issues-with-my-process-check-it-doesn-t-find-my-processes/
  26. # ignore_denied_access: (optional) Boolean. Default to True, when getting the number of files descriptors, dd-agent user might
  27. # get a denied access. Set this to true to not issue a warning if that happens.
  28. # thresholds: (optional) Two ranges: critical and warning
  29. # warning: (optional) List of two values: If the number of processes found is below the first value or
  30. # above the second one, the process check will return WARNING.
  31. # critical: (optional) List of two values: If the number of processes found is below the first value or
  32. # above the second one, the process check will return CRITICAL.
  33. # In this example, process check will return OK for 3 to 5 process. WARNING for 1, 2, 6, 7 processes and Critical below 1 or above 7.
  34. # CRITICAL is always dominant in case of overlapping.
  35. # collect_children: BOOLEAN. If true, the check will also collect metrics from all child processes of a matched process. Default to false.
  36. # Please be aware that the collection is recursive, and might take some time depending on the use case.
  37. # user: STRING. Only report processes belonging to a specific user.
  38. # try_sudo: (optional) Boolean. If set to True (default is False), the check will try to use 'sudo' to collect the 'open_fd' metric on Unix platforms.
  39. #
  40. # Examples:
  41. #
  42. # - name: ssh
  43. # search_string: ['ssh', 'sshd']
  44. # tags:
  45. # - env:staging
  46. # - cluster:big-data
  47. # thresholds:
  48. # critical if no sshd or more than 8 sshd are running
  49. # critical: [1, 7]
  50. # warning if 1, 2, 6, 7 sshd processes are running
  51. # warning: [3, 5]
  52. # ok if 3, 4, 5 processes are running
  53. #. try_sudo: False
  54. #
  55. # - name: postgres
  56. # search_string: ['postgres']
  57. # ignore_denied_access: True
  58. #
  59. # - name: nodeserver
  60. # search_string: ['node server.js']
  61. #
  62. # - name: pid_process
  63. # pid: 1278
  64. # Do not use search_string when searching by pid or multiple processes will be grabbed
  65. #
  66. # - name: pid_file
  67. # pid_file: /var/run/sshd.pid
Add Comment
Please, Sign In to add comment