Skip to content
This repository was archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
Dependency updates (issue #13)
Browse files Browse the repository at this point in the history
- io.prometheus:simpleclient ................ 0.6.0 -> 0.10.0
- io.prometheus:simpleclient_hotspot ........ 0.6.0 -> 0.10.0
- io.prometheus:simpleclient_servlet ........ 0.6.0 -> 0.10.0
- org.eclipse.jetty:jetty-servlet ........... 8.1.22.v20160922 -> 11.0.0
- org.slf4j:slf4j-api ....................... 1.7.25 -> 2.0.0-alpha1
- org.slf4j:slf4j-log4j12 ................... 1.7.25 -> 2.0.0-alpha1
- org.yaml:snakeyaml ........................ 1.24 -> 1.27

Test scoped:
- de.m3y.prometheus.assertj:assertj-prometheus ... 0.2 -> 0.5
- org.assertj:assertj-core ....................... 3.12.2 -> 3.19.0
- junit:junit .................................... 4.12 -> 4.13.1
- com.squareup.okhttp3:okhttp .................... 3.14.0 -> 3.14.9
  • Loading branch information
marcelmay committed Feb 13, 2021
1 parent 6ba959b commit d888cba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,62 +127,62 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.24</version>
<version>1.27</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>8.1.22.v20160922</version>
<version>9.4.36.v20210114</version>
</dependency>
<!-- Prometheus -->
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
<version>0.6.0</version>
<version>0.10.0</version>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_servlet</artifactId>
<version>0.6.0</version>
<version>0.10.0</version>
</dependency>
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_hotspot</artifactId>
<version>0.6.0</version>
<version>0.10.0</version>
</dependency>
<!-- Testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.12.2</version>
<version>3.19.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.m3y.prometheus.assertj</groupId>
<artifactId>assertj-prometheus</artifactId>
<version>0.2</version>
<version>0.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.14.0</version>
<version>3.14.9</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,25 @@ public synchronized boolean hasModifications() {
knoxCollector.collect();
knoxCollector.collect();

assertThat(getMetricFamilySamples(knoxCollector.collect(), "knox_exporter_config_reloads_total"))
assertThat(getMetricFamilySamples(knoxCollector.collect(), "knox_exporter_config_reloads"))
.hasTypeOfCounter()
.hasSampleValue(0.0);

// Force reloads
modified.set(true);

assertThat(getMetricFamilySamples(knoxCollector.collect(),"knox_exporter_config_reloads_total"))
assertThat(getMetricFamilySamples(knoxCollector.collect(),"knox_exporter_config_reloads"))
.hasTypeOfCounter()
.hasSampleValue(1.0); // Another inc as config flagged as modified


assertThat(getMetricFamilySamples(knoxCollector.collect(),"knox_exporter_config_reloads_total"))
assertThat(getMetricFamilySamples(knoxCollector.collect(),"knox_exporter_config_reloads"))
.hasTypeOfCounter()
.hasSampleValue(2.0); // Another inc as config flagged as modified

modified.set(false);

assertThat(getMetricFamilySamples(knoxCollector.collect(),"knox_exporter_config_reloads_total"))
assertThat(getMetricFamilySamples(knoxCollector.collect(),"knox_exporter_config_reloads"))
.hasTypeOfCounter()
.hasSampleValue(2.0); // No increment
}
Expand Down

0 comments on commit d888cba

Please sign in to comment.