1
0
mirror of https://github.com/divan/expvarmon.git synced 2025-04-29 13:49:19 +08:00

5 Commits

Author SHA1 Message Date
Ivan Daniluk
42a617b552 Add tests for vars 2016-11-12 14:02:16 +01:00
Marty Schoch
e7f60e5a45 allow escaping the dot character in paths using a backslash
Occasionally expvar output contains keys that are hostnames,
IP addresses, or filenames that contain the "." character.  For
example:

{
  "bleve": {
    "bootDuration": 16559,
    "indexes": {
      "bench.bleve": {
        "index": {
          "analysis_time": 10889841135,
          "batches": 145,
          "deletes": 0,
          "errors": 0,
          "index_time": 21277401883,
          "lookup_queue_len": 0,
          "updates": 14500
        },
        "search_time": 0,
        "searches": 0
      }
    }
  }
...
}

I can now chart the lookup_queue_len value using the var:

bleve.indexes.bench\.bleve.index.lookup_queue_len

This partially addresses #11 (still does not escape colon character).
2015-12-01 16:53:13 -05:00
Ivan Daniluk
a20c2b2fa0 Introduced kind: modifier 2015-05-02 10:12:38 +03:00
Ivan Daniluk
41c8dfdc9a Code cleanups 2015-05-01 20:12:23 +03:00
Ivan Daniluk
06c13f15f9 UI refactor 2015-05-01 18:48:34 +03:00