adminBuffer.tsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import InternalStatChart from 'sentry/components/internalStatChart';
  2. const AdminBuffer = () => {
  3. const since = new Date().getTime() / 1000 - 3600 * 24 * 7;
  4. return (
  5. <div>
  6. <h3>Buffers</h3>
  7. <div className="box">
  8. <div className="box-header">
  9. <h4>About</h4>
  10. </div>
  11. <div className="box-content with-padding">
  12. <p>
  13. Sentry buffers are responsible for making changes to cardinality counters —
  14. such as an issues event count — as well as updating attributes like{' '}
  15. <em>last seen</em>. These are flushed on a regularly interval, and are
  16. directly affected by the queue backlog.
  17. </p>
  18. </div>
  19. </div>
  20. <div className="box">
  21. <div className="box-header">
  22. <h4>Updates Processed</h4>
  23. </div>
  24. <InternalStatChart
  25. since={since}
  26. resolution="1h"
  27. stat="jobs.finished.sentry.tasks.process_buffer.process_incr"
  28. label="Jobs"
  29. />
  30. </div>
  31. <div className="box">
  32. <div className="box-header">
  33. <h4>Revoked Updates</h4>
  34. </div>
  35. <InternalStatChart
  36. since={since}
  37. resolution="1h"
  38. stat="buffer.revoked"
  39. label="Jobs"
  40. />
  41. </div>
  42. </div>
  43. );
  44. };
  45. export default AdminBuffer;