You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-5Lines changed: 23 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,11 @@ This plugin can be used while the functional testing and load tests as well.
43
43
44
44
## Important notes
45
45
The plugin allows 5 errors happened one by one, then plugin will stop importing the results after that! See details in the logs.
46
-
Counter will be refreshed at least you have 4 fails. This is protection to avoid OOM error.
46
+
Counter will be refreshed at least you have 4 fails. This is protection to avoid OOM error.
47
+
The option can be configured in the settings (the key name is `influxDBThresholdError` see the [Plugin configuration](https://github.com/mderevyankoaqa/jmeter-influxdb2-listener-plugin/tree/main#plugin-configuration) for the details). You need to be careful with that option and know the hardware resources to store data in the memory.
47
48
48
49
Pleas monitor the elapsed time of the data importing (see logs) to avoid issues with requests sending from JMeter.
49
50
Pay attention on "Sending metrics performance tuning" chapter, see below.
50
-
51
51
52
52
53
53
## Compatibility
@@ -58,11 +58,11 @@ The supported versions:
58
58
* The current board and plugin were tested on Grafana 8.2.3 and InfluxDB 2.0.9, JAVA 15.
59
59
60
60
## Maven Support
61
-
Please see the latest release here https://s01.oss.sonatype.org/content/repositories/releases/io/github/mderevyankoaqa/jmeter-plugins-influxdb2-listener/maven-metadata.xml
61
+
Please see the latest release here https://search.maven.org/artifact/io.github.mderevyankoaqa/jmeter-plugins-influxdb2-listener.
62
62
63
63
## CI/CD Support
64
64
The CI/CD can be done using [jmeter-maven-plugin](https://github.com/jmeter-maven-plugin/jmeter-maven-plugin)
65
-
The example of the adding plugin to the project with the plugin:
65
+
The example of the adding plugin to the project with the jmeter-maven:
66
66
67
67
<configuration>
68
68
<jmeterExtensions>
@@ -71,6 +71,24 @@ The example of the adding plugin to the project with the plugin:
71
71
</configuration>
72
72
Some notes cab be found in the article [Adding jar's to the /lib/ext directory](https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding-Excluding-libraries-to-from-the-classpath).
73
73
74
+
## Development and branching strategy
75
+
Hello all contributors! Welcome to the project, I'm happy to see you here. Just to avoid the mess and have a nice history, let's keep the simple rules:
76
+
1. Code should pass standard static code analysis in IntelliJ IDEA.
77
+
2. Comments should be for the new code to have clear java docs.
78
+
3. All new development lets - in the "development" branch. So the steps:
79
+
a. make a branch for the feature you want to develop from "development" (source branch -> "main"). There will be a mirror of the latest release + can be a merge of the new features.
80
+
b. all pull requests from your feature branch -> "development" branch only.
81
+
c. once we decide to make the new release after testing, we will merge "development" -> "main" with push to maven central.
82
+
83
+
While the first pull request please add your self to the [build.gradle](https://github.com/mderevyankoaqa/jmeter-influxdb2-listener-plugin/blob/main/build.gradle) the section 'developers'
84
+
85
+
developers {
86
+
developer {
87
+
id = 'your github if'
88
+
name = 'your name'
89
+
email = 'email'
90
+
}
91
+
74
92
## Deployment
75
93
* Put '`jmeter-plugin-influxdb2-listener-<version>.jar`' file from [Releases](https://github.com/mderevyankoaqa/jmeter-influxdb2-listener-plugin/releases) to `~<JmeterPath<\lib\ext`;
76
94
@@ -118,7 +136,7 @@ Let’s explain the plugin fields:
118
136
*`influxDBToken` - the influxdb bucket token, the default value should be updated, copy it from InfluxDB site.
119
137
*`influxDBFlushInterval` - its interval to send data to InfluxDB, the default value is 4000 (4 seconds).
120
138
*`influxDBMaxBatchSize` - the max size of the batch with metrics, the default 2000 (2000 items of JMeter results).
121
-
*`influxDBThresholdError` - the error threshold before stopping the import, the default value is 5. (see [Important notes](#important-notes) for more detail.)
139
+
*`influxDBThresholdError` - the error threshold before stopping the import, the default value is 5. (see [Important notes](https://github.com/mderevyankoaqa/jmeter-influxdb2-listener-plugin/tree/main#important-notes) for more detail.)
Copy file name to clipboardExpand all lines: src/main/java/io/github/mderevyankoaqa/influxdb2/visualizer/influxdb/client/InfluxDatabaseClient.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -95,15 +95,15 @@ public synchronized void close() {
95
95
96
96
/**
97
97
* Imports {@link Point} from {@link List<Point>} collection if items exists. Cleans {@link List<Point>} after writing.
98
-
* Manages Error Amount counter. The limit of the errors occurred one by one is 5. After 5 such errors, import is stopping till and of the tes.
98
+
* Manages Error Amount counter. The limit of the errors occurred one by one is 5 (the 5 - is default setting and can be updated in UI of the plugin - the key is KEY_INFLUX_DB_THRESHOLD_ERROR). After 5 such errors, import is stopping till and of the tes.
99
99
* If less 5 error has occurred and next import attempt was successful - errors counter will be refreshed.
100
100
*/
101
101
publicsynchronizedvoidimportData() {
102
102
103
103
if (this.errorsAmount.size() >= this.influxDBConfig.getInfluxdbThresholdError())
104
104
{
105
105
this.points.clear();
106
-
this.LOGGER.warn("Importing of the results to Influx DB is skipping since 5 errors, has occurred!");
106
+
this.LOGGER.warn("Importing of the results to Influx DB is skipping since "+this.influxDBConfig.getInfluxdbThresholdError()+" errors, has occurred!");
107
107
}
108
108
109
109
if (this.points.size() != 0 && this.errorsAmount.size() <= this.influxDBConfig.getInfluxdbThresholdError()) {
0 commit comments