1. 12 1月, 2016 2 次提交
    • Y
      Stop tracking call stacks for instrumented views · 355c341f
      Yorick Peterse 提交于
      Where a vew is called from doesn't matter as much. We already know what
      action they belong to and this is more than enough information. By
      removing the file/line number from the list of tags we should also be
      able to reduce the number of series stored in InfluxDB.
      355c341f
    • Y
      Track memory allocated during a transaction · 5679ee01
      Yorick Peterse 提交于
      This gives a very rough estimate of how much memory is allocated during
      a transaction. This only works reliably when using a single-threaded
      application server and a Ruby implementation with a GIL as otherwise
      memory allocated by other threads might skew the statistics. Sadly
      there's no way around this as Ruby doesn't provide a reliable way of
      gathering accurate object sizes upon allocation on a per-thread basis.
      5679ee01
  2. 11 1月, 2016 1 次提交
    • Y
      Tag all transaction metrics with an "action" tag · 35b501f3
      Yorick Peterse 提交于
      Without this it's impossible to find out what methods/views/queries are
      executed by a certain controller or Sidekiq worker. While this will
      increase the total number of series it should stay within reasonable
      limits due to the amount of "actions" being small enough.
      35b501f3
  3. 08 1月, 2016 2 次提交
  4. 07 1月, 2016 5 次提交
  5. 06 1月, 2016 4 次提交
  6. 05 1月, 2016 1 次提交
  7. 04 1月, 2016 6 次提交
  8. 01 1月, 2016 4 次提交
    • Y
      Removed tracking of hostnames for metrics · cafc784e
      Yorick Peterse 提交于
      This isn't hugely useful and mostly wastes InfluxDB space. We can re-add
      this whenever needed (but only once we really need it).
      cafc784e
    • Y
      Use separate series for Rails/Sidekiq transactions · bd9f86bb
      Yorick Peterse 提交于
      This removes the need for tagging all metrics with a "process_type" tag.
      bd9f86bb
    • Y
      Cache InfluxDB settings after the first use · 55ed6e1c
      Yorick Peterse 提交于
      This ensures we don't need to load anything from either PostgreSQL or
      the Rails cache whenever creating new InfluxDB connections.
      55ed6e1c
    • Y
      Removed tracking of raw SQL queries · a6c60127
      Yorick Peterse 提交于
      This particular setup had 3 problems:
      
      1. Storing SQL queries as tags is very inefficient as InfluxDB ends up
         indexing every query (and they can get pretty large). Storing these
         as values instead means we can't always display the SQL as easily.
      2. We already instrument ActiveRecord query methods, thus we already
         have timing information about database queries.
      3. SQL obfuscation is difficult to get right and I'd rather not expose
         sensitive data by accident.
      a6c60127
  9. 31 12月, 2015 3 次提交
  10. 29 12月, 2015 4 次提交
    • Y
      Write to InfluxDB directly via UDP · 620e7bb3
      Yorick Peterse 提交于
      This removes the need for Sidekiq and any overhead/problems introduced
      by TCP. There are a few things to take into account:
      
      1. When writing data to InfluxDB you may still get an error if the
         server becomes unavailable during the write. Because of this we're
         catching all exceptions and just ignore them (for now).
      2. Writing via UDP apparently requires the timestamp to be in
         nanoseconds. Without this data either isn't written properly.
      3. Due to the restrictions on UDP buffer sizes we're writing metrics one
         by one, instead of writing all of them at once.
      620e7bb3
    • Y
      Strip newlines from obfuscated SQL · 03478e6d
      Yorick Peterse 提交于
      Newlines aren't really needed and they may mess with InfluxDB's line
      protocol.
      03478e6d
    • Y
      Handle missing settings table for metrics · ed214a11
      Yorick Peterse 提交于
      This ensures we can still boot, even when the "application_settings"
      table doesn't exist.
      ed214a11
    • S
      Fix spelling mistake, thanks Connor. · 4465e2ec
      Sytse Sijbrandij 提交于
      4465e2ec
  11. 24 12月, 2015 2 次提交
  12. 23 12月, 2015 1 次提交
  13. 19 12月, 2015 1 次提交
  14. 18 12月, 2015 4 次提交