Advertisement
Guest User

Untitled

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