Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SmartNews と Datadog

SmartNews と Datadog

#dd_sushi での発表資料です。

2db33f44183cdc9ea0ec523924cab3a0?s=128

Takumi Sakamoto

February 24, 2015
Tweet

Transcript

  1. 4NBSU/FXTͱ%BUBEPH ͳͥ࢖͏ͷ͔ʁͲ͏࢖͏ͷ͔ʁ !UBLVT  εϚʔτχϡʔεެࣜϚείοτ ஍ٿ͘Μ

  2. Takumi Sakamoto (@takus) Engineer, Application Services

  3. None
  4. ͳͥ࢖͏ͷ͔ʁ Ͳ͏࢖͏ͷ͔ʁ

  5. ೖࣾ౰࣌ 

  6. .VOJO͕͍ͨ

  7. ؂ࢹ͕ΦΦΧϛগ೥Խ ܾͯ͠.VOJO͕ѱ͍Θ͚Ͱ͸ͳ͍

  8. ༻్ʹ߹Θͤͯվ଄ ('ͷϝτϦΫεΛ.VOJOͰ؂ࢹ౳ ͔֬ʹ૊Έ߹ΘͤͰ৭ʑͱͰ͖Δ͕

  9. औΓ૊Ή΂͖໰୊ʁ ˓؂ࢹʹΑΔαʔϏεͷ҆ఆӡ༻ º؂ࢹγεςϜͷӡ༻

  10. ࣗ෼ͨͪͰ΍Δ͜ͱ ΛݮΒ͢ ελʔτΞοϓਓͱ͕࣌ؒͳ͍

  11. ঎༻αʔϏεΛࢼ͢ %BUBEPH $PQQFS&HH 4DPVU .BDLFSFM ౰࣌͸ύϒϦοΫϕʔλ

  12. ΧελϜϝτϦΫε ߟ͑ͨ͜ͱ ϓϩάϚϥϒϧ ಋೖίετ Ձ֨ αϙʔτ ಋೖ࣮੷

  13. None
  14. બΜͩཧ༝ʁ ػೳຖʹݟΔͱ͋·Γ͕ࠩͳ͔ͬͨ ͕ɺ࢖ͬͯΈΔͱμϯτπʹ࢖͍΍͔ͬͨ͢

  15. ͳͥ࢖͏ͷ͔ʁ Ͳ͏࢖͏ͷ͔ʁ

  16. λάϕʔεͰͷ؂ࢹ σϓϩΠཤྺ؅ཧ ΧελϜϝτϦΫε

  17. http://qiita.com/takus/items/c1d71bfcc231d0c24e0a

  18. %/4ࢀরൺ཰Λม͑ͳ͕Β 71$ʹҠߦ͢Δέʔε

  19. SPMFXFC FOWDMBTTJD SPMFXFC FOWWQD SPMFλάΛݩʹϓϩϏδϣχϯά

  20. SPMFXFC FOWDMBTTJD SPMFXFC FOWWQD FOWλάΛݩʹϝτϦΫε؂ࢹ

  21. sum:apache.status_2xx_count{role:web} by {env} EC2 Classic VPC FOWλάΛݩʹՄࢹԽ͢Δྫ

  22. FOWλάΛݩʹΞϥʔτઃఆͷྫ Ҡߦઌ͸௿Ίͷᮢ஋Ͱ4MBDL௨஌

  23. SPMFXFC FOWQSPEVDUJPOCMVF SPMFXFC FOWQSPEVDUJPOHSFFO ಉ͡࢓૊ΈΛར༻ͯ͠ $:"/%FQMPZNFOU΋

  24. λάϕʔεͰͷ؂ࢹ σϓϩΠཤྺ؅ཧ ΧελϜϝτϦΫε

  25. from fabric.api run from fabric.decorators import runs_once, parallel @parallel @task

    def deploy(): do_your_task() notify() @runs_once def notify(): ver = release_version() run("java -jar /path/to/newrelic/newrelic.jar deployment --appname=xxxx --revision=%s" % ver) 'BCSJDͰͷσϓϩΠΛ /FX3FMJDʹ௨஌
  26. /FX3FMJDͰσϓϩΠཤྺ؅ཧ

  27. 8FCIPPLܦ༝Ͱ࿈ܞ

  28. %BUBEPHͰ΋σϓϩΠཤྺ؅ཧ

  29. λάϕʔεͰͷ؂ࢹ σϓϩΠཤྺ؅ཧ ΧελϜϝτϦΫε

  30. +.9ܦ༝ͰΧελϜϝτϦΫε

  31. "default_attributes": { "datadog": { "jmx": { "instances": [ { "include":

    [ { "attributes": [ { "alias": "jmx.xxxx.xxxx", "metric_type": "gauge", "name": "YYYY" } ], "bean": "smartnews:name=xxxx" }, $IFGʹ਺ߦ଍͚ͩ͢Ͱ
  32. Α͠ͳʹՄࢹԽΞϥʔτઃఆ

  33. ඞཁͳΒࣗ෼Ͱ֦ு͢Δͷ΋؆୯

  34. /BHJPTϓϥάΠϯʹ͍ۙ

  35. ຊՈʹ΋ίϯτϦϏϡʔτ Special Thanks to @kiyoto ͞Μ https://www.datadoghq.com/2015/02/monitor-fluentd-datadog/

  36. %BUBEPHͰ ؂ࢹ͕௙ͬͯ·͢

  37. 5IBOLZPV