[
  { "id": "rucio.daemons.automatix",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage":  "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Automatix",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.automatix.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.conveyor",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Conveyor",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.conveyor*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.hermes",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Hermes",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.hermes*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.judge",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Judge",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.judge*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.kronos",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Kronos",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.kronos*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.necromancer",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Necromancer",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.necromancer*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.reaper",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Reaper",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.reaper*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.transmogrifier",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Transmogrifier",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.transmogrifier*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.daemons.undertaker",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-Undertaker",
    "availability": { "metric": "summarize(sumSeries(stats.rucio.monitoring.daemons.undertaker*.*.*.count),'10min',true)",
                      "mapping": "100 if ( {value} > 0) else 0",
                      "info": "If log activity within the last 10 minutes = 100% else 0%"
                    }
  },
  { "id": "rucio.loadbalancer",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-HAProxy",
    "availability": { "metric": "averageSeries(summarize(stats.rucio.monitoring.loadbalancer.rucio-lb-prod-*.*.Idle_pct, '10min', 'avg', true))",
                      "mapping": "100 if ( {value} > 10) else 0",
                      "info": "Idle percentage as reported by HAProxy"
                    }
  },
  { "id": "rucio.httpd",
    "from": "-10minutes",
    "until": "-1minutes",
    "targets":  [ ],
    "webpage": "https://rucio-graphite-prod-02.cern.ch/dashboard/#Monitoring-RucioBackendServer",
    "availability": { "metric": "averageSeries(summarize(stats.rucio.monitoring.backends.rucio-server-prod-*.availability,'10min','avg',true))",
                      "mapping": "100 if ( {value} > 10) else 0",
                      "info": "Ratio between busy and idle workers as reported by Apache's scoreboards"
                    }
  }
]
