github.com/go-graphite/carbonapi@v0.17.0/expr/carbonapi.dg (about) 1 %%% carbonapi 2 %%% for use with https://github.com/MozillaSecurity/dharma 3 4 %const% VARIANCE_MAX := 1 5 %const% VARIANCE_TEMPLATE := "%s" 6 %const% MAX_REPEAT_POWER := 4 7 8 %section% := value 9 10 target := 11 +metric+ 12 +function+ 13 14 function := 15 +node+(%repeat%(+argument+, ",")) 16 17 argument := 18 +literal+ 19 +metric+ 20 +function+ 21 +namedparam+ 22 23 literal := 24 +string+ 25 +common:integer+ 26 +common:decimal_number+ 27 28 string := 29 "+common:text+" 30 31 metric := 32 %repeat%(+node+, ".") 33 34 word := 35 %range%(A-Z) 36 %range%(a-z) 37 %range%(0-9) 38 _ 39 40 alpha := 41 %range%(A-Z) 42 %range%(a-z) 43 44 node := 45 %repeat%(+alpha+)%repeat%(+word+) 46 47 namedparam := 48 +word+=+literal+ 49 50 %section% := variable 51 52 %section% := variance 53 54 main := 55 +target+