Advertisement
Guest User

Untitled

a guest
May 7th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. init_config:
  2.  
  3. instances:
  4. - server: 127.0.0.1
  5. user: datadog
  6. pass: '<amit@123>' # from the CREATE USER step earlier
  7. port: 3306 # e.g. 3306
  8. options:
  9. replication: 0
  10. galera_cluster: true
  11. extra_status_metrics: true
  12. extra_innodb_metrics: false
  13. extra_performance_metrics: true
  14. schema_size_metrics: false
  15. disable_innodb_metrics: false
  16.  
  17. queries:
  18. - query: SELECT VARIABLE_NAME, VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Uptime';
  19. metric: mysql.uptime_status.200
  20. tags:
  21. - test:mysql_uptime
  22. type: gauge
  23. field: VARIABLE_NAME
  24.  
  25. logs:
  26. - type: file
  27. path: /var/log/mysql/mysql_error.log
  28. source: mysql
  29. sourcecategory: database
  30. service: myapplication
  31. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement