Untitled

From Scorching Mousedeer, 3 Years ago, written in Plain Text, viewed 628 times.
URL https://p.gaa.st/view/1dbea96a Embed
Download Paste or View Raw
  1. prometheus {
  2.         rotate_interval = 10
  3.         server = "http://nasi.dublin:9090"
  4.         fields = [
  5.                 {
  6.                         "q": "probe_success < avg_over_time(probe_success[2h])",
  7.                         "fmt": "? %(job)s %(instance)s ?",
  8.                         "color": "bad",
  9.                 },
  10.                 {
  11.                         "sub": [
  12.                                 {
  13.                                         "q": "sum(inverter_watts{job='solar'})",
  14.                                         "units": {"unit": "W", "si": True},
  15.                                 },
  16.                                 {
  17.                                         "q": "sum(max_over_time(inverter_day_kwh{job='solar'}[1h])) * 1000",
  18.                                         "units": {"unit": "Wh", "si": True},
  19.                                 }
  20.                         ],
  21.                         "fmt": "? %(0.v)s, %(1.v)s",
  22.                 },
  23.                 {
  24.                         "sub": [
  25.                                 {
  26.                                         "q": "temperature_C{channel='1'}",
  27.                                 },
  28.                                 {
  29.                                         "q": "max_over_time(wind_max_m_s[2m]) * 3.6",
  30.                                 }
  31.                         ],
  32.                         "fmt": "?️ %(0.v).1f°C ? %(1.v)d",
  33.                 },
  34.                 {
  35.                         "sub": [
  36.                                 {
  37.                                         "q": "num_planes{job='dump1090'}",
  38.                                 },
  39.                                 {
  40.                                         "q": "dist_max{job='dump1090'}",
  41.                                 },
  42.                         ],
  43.                         "fmt": "%(location)s ✈️ %(0.v)d (%(1.v)dkm)",
  44.                         #"join": ", ",
  45.                 },
  46.                 {
  47.                         "sub": [
  48.                                 {
  49.                                         "q": "ceph_cluster_total_used_raw_bytes",
  50.                                         "units": {"unit": "B", "optimal": 3},
  51.                                 },
  52.                                 {
  53.                                         "q": "ceph_cluster_total_bytes",
  54.                                         "units": {"unit": "B", "optimal": 3},
  55.                                 },
  56.                                 {
  57.                                         "q": "(ceph_cluster_total_used_raw_bytes / ceph_cluster_total_bytes * 100) > 8",
  58.                                 },
  59.                         ],
  60.                         "fmt": "Ceph %(2.v)d%% (%(0.v)s/%(1.v)s)",
  61.                 },
  62.         ]
  63. }
  64.  

Reply to "Untitled"

Here you can reply to the paste above