<commit_before><%
  cf_deployment = "#{deployment}-cf"
  diego_deployment = "#{deployment}-diego"
%>
{
  "title": "<%= environment %> Diego Health",
  "description": "<%= environment %> Diego Health",
  "graphs":[
    {
      "title": "Cell: Tasks",
      "definition":{
        "requests":[
          {
            "q": "avg:datadog.nozzle.bbs.TasksPending{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksClaimed{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksRunning{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksCompleted{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksResolving{deployment:<%= diego_deployment %>}"
          }
        ],
        "events":[
          {
            "q": "tags:deployment:<%= diego_deployment %> started deploying diego to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> finished deploying diego to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> failed deploying diego to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> started deploying cf to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> finished deploying cf to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> failed deploying cf to <%= diego_deployment %>"
          }
        ]
      }
    },
    {
      "title": "Cell: LRPs",
      "definition":{
        "requests": [
          {
            "q": "datadog.nozzle.bbs.LRPsDesired{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.LRPsStarting{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.LRPsRunning{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.CrashedActualLRPs{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.CrashedActualLRPs{deployment: <%= diego_deployment %>} + datadog.nozzle.bbs.LRPsStarting{deployment: <%= diego_deployment %>} + datadog.nozzle.bbs.LRPsRunning{deployment: <%= diego_deployment %>}"
          }
        ],
        "events":[
          {
            "q": "tags:deployment:<%= diego_deployment %> started deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> finished deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> failed deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> started deploying cf to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> finished deploying cf to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> failed deploying cf to <%= deployment %>"
          }
        ]
      }
    },
    {
      "title": "Cell: Missing LRPs",
      "definition":{
        "requests": [
          {
            "q": "(((datadog.nozzle.bbs.LRPsDesired{deployment: <%= diego_deployment %>} - datadog.nozzle.bbs.LRPsRunning{deployment: <%= diego_deployment %>}) -datadog.nozzle.bbs.LRPsStarting{deployment: <%= diego_deployment %>}) -datadog.nozzle.bbs.CrashedActualLRPs{deployment: <%= diego_deployment %>})",
            "type": "line"
          }
        ],
        "events":[
          {
            "q": "tags:deployment:<%= diego_deployment %> started deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> finished deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> failed deploying diego to <%= deployment %>"
          },
          {<commit_msg>Update diego health board to use new lrp metrics<commit_after><%
  cf_deployment = "#{deployment}-cf"
  diego_deployment = "#{deployment}-diego"
%>
{
  "title": "<%= environment %> Diego Health",
  "description": "<%= environment %> Diego Health",
  "graphs":[
    {
      "title": "Cell: Tasks",
      "definition":{
        "requests":[
          {
            "q": "avg:datadog.nozzle.bbs.TasksPending{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksClaimed{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksRunning{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksCompleted{deployment:<%= diego_deployment %>}"
          },
          {
            "q": "avg:datadog.nozzle.bbs.TasksResolving{deployment:<%= diego_deployment %>}"
          }
        ],
        "events":[
          {
            "q": "tags:deployment:<%= diego_deployment %> started deploying diego to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> finished deploying diego to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> failed deploying diego to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> started deploying cf to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> finished deploying cf to <%= diego_deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> failed deploying cf to <%= diego_deployment %>"
          }
        ]
      }
    },
    {
      "title": "Cell: LRPs",
      "definition":{
        "requests": [
          {
            "q": "datadog.nozzle.bbs.LRPsDesired{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.LRPsClaimed{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.LRPsRunning{deployment: <%= diego_deployment %>}"
          },
          {
            "q": "datadog.nozzle.bbs.CrashedActualLRPs{deployment: <%= diego_deployment %>}"
          },
        ],
        "events":[
          {
            "q": "tags:deployment:<%= diego_deployment %> started deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> finished deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> failed deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> started deploying cf to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> finished deploying cf to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= cf_deployment %> failed deploying cf to <%= deployment %>"
          }
        ]
      }
    },
    {
      "title": "Cell: Missing LRPs",
      "definition":{
        "requests": [
          {
            "q": "datadog.nozzle.bbs.LRPsMissing{deployment: <%= diego_deployment %>}",
            "type": "line"
          }
        ],
        "events":[
          {
            "q": "tags:deployment:<%= diego_deployment %> started deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> finished deploying diego to <%= deployment %>"
          },
          {
            "q": "tags:deployment:<%= diego_deployment %> failed deploying diego to <%= deployment %>"
          },
          {
{'fraction_non_alphanumeric': 0.16610212018567305, 'fraction_numerical': 0.0, 'mean_word_length': 1.8821402747650036, 'pattern_counts': {'":': 83, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4551416', 'n_tokens_mistral': 2705, 'n_tokens_neox': 2411, 'n_words': 391}