slow_table_sink.json 448 B

12345678910111213141516171819
  1. {
  2. "type": "SQLOperator",
  3. "node_name": "HdfsTableSink",
  4. "collapse": true,
  5. "metric_names": [
  6. "BytesWritten",
  7. "LocalTime"
  8. ],
  9. "unit_id": 5,
  10. "rule": {
  11. "condition": "vars['BytesWritten'] > 0",
  12. "expr": "float(vars['LocalTime']) - 0.01 / float(vars['BytesWritten'])",
  13. "message": "Write speed should be at least 1MB/sec. It's slower than expected",
  14. "label": "Slow write speed"
  15. },
  16. "fix": {
  17. "fixable": false
  18. }
  19. }