Advertisement
Guest User

Untitled

a guest
Jan 19th, 2015
188
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None
  1. ---
  2. sources:
  3. - name: meter_source
  4. interval: 600
  5. meters:
  6. - "*"
  7. sinks:
  8. - meter_sink
  9. - name: cpu_source
  10. interval: 600
  11. meters:
  12. - "cpu"
  13. sinks:
  14. - cpu_sink
  15. - name: disk_source
  16. interval: 600
  17. meters:
  18. - "disk.read.bytes"
  19. - "disk.read.requests"
  20. - "disk.write.bytes"
  21. - "disk.write.requests"
  22. - "disk.device.read.bytes"
  23. - "disk.device.read.requests"
  24. - "disk.device.write.bytes"
  25. - "disk.device.write.requests"
  26. sinks:
  27. - disk_sink
  28. - name: network_source
  29. interval: 600
  30. meters:
  31. - "network.incoming.bytes"
  32. - "network.incoming.packets"
  33. - "network.outgoing.bytes"
  34. - "network.outgoing.packets"
  35. sinks:
  36. - network_sink
  37. sinks:
  38. - name: meter_sink
  39. transformers:
  40. publishers:
  41. - notifier://
  42. - name: cpu_sink
  43. transformers:
  44. - name: "rate_of_change"
  45. parameters:
  46. target:
  47. name: "cpu_util"
  48. unit: "%"
  49. type: "gauge"
  50. scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
  51. publishers:
  52. - notifier://
  53. - name: disk_sink
  54. transformers:
  55. - name: "rate_of_change"
  56. parameters:
  57. source:
  58. map_from:
  59. name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
  60. unit: "(B|request)"
  61. target:
  62. map_to:
  63. name: "\\1.\\2.\\3.rate"
  64. unit: "\\1/s"
  65. type: "gauge"
  66. publishers:
  67. - notifier://
  68. - name: network_sink
  69. transformers:
  70. - name: "rate_of_change"
  71. parameters:
  72. source:
  73. map_from:
  74. name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
  75. unit: "(B|packet)"
  76. target:
  77. map_to:
  78. name: "network.\\1.\\2.rate"
  79. unit: "\\1/s"
  80. type: "gauge"
  81. publishers:
  82. - notifier://
Advertisement
RAW Paste Data Copied
Advertisement