<commit_before>[![Build Status](https://travis-ci.org/savantly-net/graphite-client.svg?branch=master)](https://travis-ci.org/savantly-net/graphite-client)

# Graphite Client


Use in Maven project -

```
	<dependency>
		<groupId>net.savantly</groupId>
		<artifactId>graphite-client</artifactId>
		<version>2.0.0-RELEASE</version>
	</dependency>
```


## Reporting Example 

	@Test
	public void testWithHostAndPortParameters() throws UnknownHostException, SocketException {
		GraphiteClient client = GraphiteClientFactory.defaultGraphiteClient("localhost", 2003);
		
		long epoch = System.currentTimeMillis()/1000;
		CarbonMetric metric = new SimpleCarbonMetric("test.one", "123", epoch);
		client.saveCarbonMetrics(metric);
	}



## Query Example -  
	
	String graphiteHost = "localhost";<commit_msg>cleanup<commit_after>[![Build Status](https://travis-ci.org/savantly-net/graphite-client.svg?branch=master)](https://travis-ci.org/savantly-net/graphite-client)

# Graphite Client


Use in Maven project -

```
	<dependency>
		<groupId>net.savantly</groupId>
		<artifactId>graphite-client</artifactId>
		<version>2.0.0-RELEASE</version>
	</dependency>
```


## Reporting Example 

	GraphiteClient client = GraphiteClientFactory.defaultGraphiteClient("localhost", 2003);
	
	long epoch = System.currentTimeMillis()/1000;
	CarbonMetric metric = new SimpleCarbonMetric("test.one", "123", epoch);
	client.saveCarbonMetrics(metric);



## Query Example -  
	
	String graphiteHost = "localhost";
{'fraction_non_alphanumeric': 0.14391392064559516, 'fraction_numerical': 0.01882985877605918, 'mean_word_length': 5.413793103448276, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, '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': '1903664', 'n_tokens_mistral': 540, 'n_tokens_neox': 459, 'n_words': 74}