<commit_before># Description

This service is taking metric **-m** from graphite server **-U**, authenticated by **-u** with token **-a** with timerange from **-range1From** untill **-range1Until** and compare it with timerange between **-range2From** and **-range2Until**
If there is increasing more, than **-wi** it will exit with code 1 and if more, than **-ci** - with exit code 2.
Same for decreasing with arguments **-wd** and **-cd**
Also exit message will be percentage of the difference between time ranges.

## Functions
This service will analyze metrics from graphite in one of next modes:
	 - percent (default):
		 takes mertic within range1 (from-until) and range2 (from-until)
		 and count as percent 2 metric from the 1st one (2nd*100/1st)
	 - absolute:
		 simular to percent, but with absolute values (2nd-1st)
	 - absoluteSingle:
		 tales metric only within range1 (from-until)
All of these methods print the result and give you exit code according nagios standards


# Usage
- -U string
        Base address of your graphite server e.g. https://graphite.protury.info/
- -a string
        AuthToken to access the graphite-API. For example 'qqq'
- -mode string
      	Mode of analysis of metrics. E.G. percent, absolute, singleAbsolute (default "percent")
- -ci int
        Metrics above this threshold will be marked as critical (default 40)
- -wi int
        Metrics above this threshold will be marked as warning (default 20)
- -cd int
        Metrics below this threshold will be marked as critical (default 40)
- -wd int
        Metrics below this threshold will be marked as warning (default 20)
- -m string
        Name of metric or metric filter e.g. qqqq.test.leoleovich.currentProblems
- -range1From int
    	Amount of seconds ago for the 1st range (from) (default 90000) = 1 day and 1 hour
- -range1Until int
    	Amount of seconds ago for the 1st range (until) (default 86400) = 1 day
- -range2From int
    	Amount of seconds ago for the 2st range (from) (default 3600) = 1 hour<commit_msg>Fixed readme<commit_after># Description

This service is taking metric **-m** from graphite server **-U**, authenticated by **-u** with token **-a** with timerange from **-range1From** untill **-range1Until** and compare it with timerange between **-range2From** and **-range2Until**
If there is increasing more, than **-wi** it will exit with code 1 and if more, than **-ci** - with exit code 2.
Same for decreasing with arguments **-wd** and **-cd**
Also exit message will be percentage of the difference between time ranges.

## Functions
This service will analyze metrics from graphite in one of next modes:
- percent (default):  
	takes mertic within range1 (from-until) and range2 (from-until)  
	and count as percent 2 metric from the 1st one (2nd*100/1st)
- absolute:  
	simular to percent, but with absolute values (2nd-1st)
- absoluteSingle:  
	tales metric only within range1 (from-until)
All of these methods print the result and give you exit code according nagios standards


# Usage
- -U string
        Base address of your graphite server e.g. https://graphite.protury.info/
- -a string
        AuthToken to access the graphite-API. For example 'qqq'
- -mode string
      	Mode of analysis of metrics. E.G. percent, absolute, singleAbsolute (default "percent")
- -ci int
        Metrics above this threshold will be marked as critical (default 40)
- -wi int
        Metrics above this threshold will be marked as warning (default 20)
- -cd int
        Metrics below this threshold will be marked as critical (default 40)
- -wd int
        Metrics below this threshold will be marked as warning (default 20)
- -m string
        Name of metric or metric filter e.g. qqqq.test.leoleovich.currentProblems
- -range1From int
    	Amount of seconds ago for the 1st range (from) (default 90000) = 1 day and 1 hour
- -range1Until int
    	Amount of seconds ago for the 1st range (until) (default 86400) = 1 day
- -range2From int
    	Amount of seconds ago for the 2st range (from) (default 3600) = 1 hour
{'fraction_non_alphanumeric': 0.08438818565400844, 'fraction_numerical': 0.02482005460412013, 'mean_word_length': 3.352051835853132, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3239277', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1110, 'n_words': 568}