<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: punch</title>
    <description>The latest articles on DEV Community by punch (@punch).</description>
    <link>https://dev.to/punch</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F15006%2F3994675e-8778-41a6-a581-868dc4c5ce00.jpg</url>
      <title>DEV Community: punch</title>
      <link>https://dev.to/punch</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/punch"/>
    <language>en</language>
    <item>
      <title>Testing For Success vs. Failure</title>
      <dc:creator>punch</dc:creator>
      <pubDate>Fri, 08 Feb 2019 19:42:48 +0000</pubDate>
      <link>https://dev.to/punch/testing-for-success-vs-failure-30cp</link>
      <guid>https://dev.to/punch/testing-for-success-vs-failure-30cp</guid>
      <description>&lt;p&gt;When you build something, and tweak it to satisfy all of the scenarios it can cover, how/when/how much do you test it for failure?&lt;/p&gt;

&lt;p&gt;Let's say that I build a monitor to watch the ratio between two specific metrics, and I want it to alert me when that ratio drops below 0.8, rather than 1 (indicating that there is no issue), or 0.9 (indicating that we might have something righting itself, i.e. an autoscaling host being killed off as it's no longer needed).&lt;/p&gt;

&lt;p&gt;I've built this monitor and tweaked the thresholds based on historical examples of:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Times when we wanted to be alerted, based on what was going on, and what the ratio looked like at that time&lt;/li&gt;
&lt;li&gt;Times when we expect the ratio to not be 1, but we don't need to alert, as we have scheduled a change during that time period&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I've researched this, tested in, even did some new example tests of #1 and #2. Based on everything I've tested thus far, the new monitor I've built satisfies everything and would have alerted on all times when we wanted it to, and would have ignored all of the times we wanted it to ignore the metric ratio. I present the results of my testing, my research, my reasonings, and the monitor, to my manager, who says:&lt;/p&gt;

&lt;h3&gt;
  
  
  "You need to come up with an example of where this monitor fails."
&lt;/h3&gt;

&lt;h1&gt;
  
  
  &lt;em&gt;Is he right?&lt;/em&gt;
&lt;/h1&gt;

&lt;p&gt;Remember, I have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;tested different metrics, and combinations/ratios, to find the optimal way to monitor these scenarios&lt;/li&gt;
&lt;li&gt;tweaked my thresholds to satisfy when I do and do NOT want the monitor to alert us&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Testing for unknown unknowns is always difficult. In this case, I'm being asked to make a monitor that is &lt;em&gt;completely perfect, and &lt;strong&gt;will not need to be tweaked in the future&lt;/strong&gt; even if our infrastructure changes&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Can/should this be done? How/why/why not?&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
