Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 14c6bee

Browse files
author
Florian Lautenschlager
committed
Updatd to latest versions.
1 parent 4aff087 commit 14c6bee

File tree

149 files changed

+978
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+978
-324
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Binary files.
2+
*.gz binary

README.md

Lines changed: 5 additions & 2 deletions

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ allprojects {
2828

2929
group 'de.qaware.chronix'
3030

31-
version = "0.3"
32-
33-
3431
repositories {
3532
jcenter()
3633
mavenCentral()
@@ -52,6 +49,7 @@ subprojects {
5249
apply plugin: 'com.jfrog.bintray'
5350
apply plugin: 'com.github.hierynomus.license'
5451

52+
version = "0.4"
5553

5654
license {
5755
includes(["**/*.java", "**/*.groovy"])

chronix-importer/README.md

Lines changed: 119 additions & 0 deletions

chronix-importer/build.gradle

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
11
dependencies {
22
compile 'org.apache.commons:commons-lang3:3.4'
33
compile 'commons-io:commons-io:2.5'
4+
compile 'org.yaml:snakeyaml:1.17'
45

56
compile 'de.qaware.chronix:chronix-api:0.1'
67
compile 'de.qaware.chronix:chronix-server-client:0.3'
78
compile 'de.qaware.chronix:chronix-timeseries:0.3'
89
compile 'de.qaware.chronix:chronix-timeseries-converter:0.3'
10+
11+
//Testing
12+
testCompile 'org.codehaus.groovy:groovy-all:2.4.6'
13+
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
14+
testCompile 'cglib:cglib-nodep:3.2.0'
15+
testCompile 'org.objenesis:objenesis:2.2'
16+
}
17+
18+
jar {
19+
20+
manifest {
21+
attributes "Main-Class": "de.qaware.chronix.importer.CSVImporter"
22+
}
23+
24+
from {
25+
configurations.compile.collect {
26+
it.isDirectory() ? it : zipTree(it)
27+
}
28+
}
29+
}
30+
31+
task copyLib(type: Copy) {
32+
into "$projectDir/importer/lib"
33+
from "$buildDir/libs/chronix-importer-${project.version}.jar"
34+
}
35+
36+
task writeImporterScript(dependsOn: copyLib){
37+
File file = new File("$projectDir/importer/import.sh")
38+
file.write "#!/usr/bin/env bash\njava -Dlog4j.configurationFile=log4j2.xml -jar lib/chronix-importer-${project.version}.jar config.yml data/"
39+
40+
}
41+
42+
task zip(dependsOn: writeImporterScript, type:Zip) {
43+
from ("$projectDir/importer/")
44+
into "importer-${project.version}"
45+
destinationDir file('.')
46+
}
47+
48+
task buildRelease(dependsOn: zip) {
49+
950
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#The connection to chronix
2+
chronix: http://localhost:8983/solr/chronix
3+
4+
#valid values: LONG (ms since 1970), INSTANT (default java 8 instant), 'SDF-FORMAT' e.g dd.MM.yyyy HH:mm:ss.SSS
5+
dateFormat: dd.MM.yyyy HH:mm:ss.SSS
6+
7+
#valid values: ENGLISH, GERMAN
8+
numberFormat: ENGLISH
9+
10+
# delimiter for csv files.
11+
#valid values: , or ;
12+
csvDelimiter: ;
13+
14+
#the name of the attribute fields.
15+
#the order matters.
16+
#the attributes are extracted from the file name
17+
#jenkins_global_unix-global_qaware-jenkins
18+
#host_group_process
19+
attributeFields:
20+
- host
21+
- group
22+
- source
23+
24+
25+
#Will parse the csv files without importing them.
26+
#Only generates the metrics.csv file
27+
#valid values: true / false
28+
onlyGenerateMetricsFile: false
29+
30+
31+
#Will delete old metrics before new metrics are imported
32+
cleanImport: true
Lines changed: 13 additions & 0 deletions

0 commit comments

Comments
 (0)