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

Commit

Permalink
Merge pull request #15 from FlorianLautenschlager/master
Browse files Browse the repository at this point in the history
Documentation on how to use JavaFX on Linux.
  • Loading branch information
Florian Lautenschlager authored Sep 7, 2017
2 parents 7cf052d + 05ef135 commit 3d32807
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 1 deletion.
15 changes: 14 additions & 1 deletion chronix-timeseries-exploration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@ It uses a central Chronix Server to query the time series.
To start you have to do a few steps:

### Prerequisites
1. JDK 8
1. JDK 8 (Oracle, OpenJDK see below)
2. Chronix Server

#### OpenJDK
JavaFX is not included in OpenJDK on Linux.
As a result the following error occurs when starting the application with OpenJDK.
```
Error: Could not find or load main class de.qaware.chronix.examples.exploration.ui.MainRunner
```
**Solution**
- Use Oracle JDK that includes JavaFX
- Install the missing JavaFX package for OpenJDK, e.g for Ubuntu:
```bash
sudo apt-get install openjfx
```

### Download and execution
First ensure that you have a Java 8 runtime environment in your PATH.
That should be easy ;-).
Expand Down
31 changes: 31 additions & 0 deletions classes/test/chronix-importer/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#The connection to chronix
chronix: http://localhost:8983/solr/chronix

#valid values: LONG (ms since 1970), INSTANT (default java 8 instant), 'SDF-FORMAT' e.g dd.MM.yyyy HH:mm:ss.SSS
dateFormat: dd.MM.yyyy HH:mm:ss.SSS

#valid values: ENGLISH, GERMAN
numberFormat: ENGLISH

# delimiter for csv files.
#valid values: , or ;
csvDelimiter: ;

#the name of the attribute fields.
#the order matters.
#the attributes are extracted from the file name
#jenkins_global_unix-global_qaware-jenkins
#host_group_process
attributeFields:
- host
- group
- process


#Will parse the csv files without importing them.
#Only generates the metrics.csv file
#valid values: true / false
onlyGenerateMetricsFile: true

#Will delete old metrics before new metrics are imported
cleanImport: true
14 changes: 14 additions & 0 deletions classes/test/chronix-importer/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="info">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit 3d32807

Please sign in to comment.