Advertisement
Guest User

Untitled

a guest
May 30th, 2017
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. init_config:
  2.  
  3. instances:
  4. - server: <host>
  5. user: <USER>
  6. pass: <SECRET>
  7. # port: 3306 # Optional
  8. # sock: /path/to/sock # Connect via Unix Socket
  9. # defaults_file: my.cnf # Alternate configuration mechanism
  10. # connect_timeout: None # Optional integer seconds
  11. # tags: # Optional
  12. # - optional_tag1
  13. # - optional_tag2
  14. options:
  15. replication: false
  16. # replication_non_blocking_status: false # grab slave count in non-blocking manner (req. performance_schema)
  17. # galera_cluster: false
  18. extra_status_metrics: true
  19. extra_innodb_metrics: true
  20. extra_performance_metrics: true
  21. # schema_size_metrics: false
  22. # disable_innodb_metrics: false
  23. - server: <host>
  24. user: wp_qa
  25. pass: <USER>
  26. options:
  27. replication: false
  28. extra_status_metrics: true
  29. extra_innodb_metrics: true
  30. extra_performance_metrics: true
  31. #
  32. # NOTE: disable_innodb_metrics should only be used by users with older (unsupported) versions of
  33. # MySQL who do not run/have innodb engine support and may experiment issue otherwise.
  34. # Should this flag be enabled you will only receive a small subset of metrics.
  35. #
  36. # NOTE: extra_performance_metrics will only be reported if `performance_schema` is enabled
  37. # in the MySQL instance and if the version for that instance is >= 5.6.0
  38. #
  39. # extra_performance_metrics and schema_size_metrics will run two heavier queries
  40. # against your DB to compute the relevant metrics for all your existing schemas.
  41. # Due to the nature of these calls, if you have a high number of tables and/or schemas,
  42. # you may be subject to some negative impact in the performance of your DB.
  43. # Please bear that in mind when enabling them.
  44. # Metrics provided by the options:
  45. # - mysql.info.schema.size (per schame)
  46. # - mysql.performance.query_run_time.avg (per schema)
  47. # - mysql.performance.digest_95th_percentile.avg_us
  48. #
  49. # With the addition of new metrics to the MySQL catalog starting with agent >=5.7.0, because
  50. # we query additional schemas to get this full set of metrics. Some of these require the user
  51. # defined for the instance to have PROCESS and SELECT privileges. Please take a look at the
  52. # MySQL integration tile in the Datadog WebUI for further instructions.
  53. #
  54. # ssl: # Optional
  55. # key: /path/to/my/key.file
  56. # cert: /path/to/my/cert.file
  57. # ca: /path/to/my/ca.file
  58.  
  59. # queries: # Optional
  60. # - # Sample Custom metric
  61. # query: SELECT TIMESTAMPDIFF(second,MAX(create_time),NOW()) as last_accessed FROM requests
  62. # metric: app.seconds_since_last_request
  63. # tags: # Optional - only applied to this custom metric query, will not affect default mysql metrics
  64. # - custom_tag1
  65. # - custom_tag2
  66. # type: gauge
  67. # field: last_accessed
  68. # - # Sample Custom metric
  69. # query: SELECT TIMESTAMPDIFF(second,MAX(create_time),NOW()) as last_user FROM users
  70. # metric: app.seconds_since_new_user
  71. # tags: # Optional - only applied to this custom metric query, will not affect default mysql metrics
  72. # - custom_tag1
  73. # - custom_tag2
  74. # type: gauge
  75. # field: last_user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement