Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: logchange/hofund
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.0
Choose a base ref
...
head repository: logchange/hofund
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 30, 2024

  1. Copy the full SHA
    f7cbbbb View commit details

Commits on Jul 1, 2024

  1. Merge pull request #40 from logchange/release

    release to main - preparation for next development cycle
    marwin1991 authored Jul 1, 2024
    Copy the full SHA
    70169e2 View commit details

Commits on Jul 13, 2024

  1. Added SimpleHofundHttpConnection to simplified configuration of HTT…

    …P connections and added ability to override
    
      `getRequestMethod()` in `AbstractHofundBasicHttpConnection` to allow using `POST` method.
    pz2 committed Jul 13, 2024
    Copy the full SHA
    dc6115b View commit details
  2. Added SimpleHofundHttpConnection to simplified configuration of HTT…

    …P connections and added ability to override
    
      `getRequestMethod()` in `AbstractHofundBasicHttpConnection` to allow using `POST` method.
    pz2 committed Jul 13, 2024
    Copy the full SHA
    a0b6210 View commit details
  3. Merge pull request #42 from logchange/simple-http-connection-config

    Added `SimpleHofundHttpConnection` to simplified configuration of HTT…
    marwin1991 authored Jul 13, 2024
    Copy the full SHA
    17b2a75 View commit details
  4. Added HofundConnectionsTable to allow printing HofundConnection to …

    …terminal during booting up.
    pz2 committed Jul 13, 2024
    Copy the full SHA
    e946c4c View commit details
  5. Added HofundConnectionsTable to allow printing HofundConnection to …

    …terminal during booting up.
    pz2 committed Jul 13, 2024
    Copy the full SHA
    da9d6ab View commit details

Commits on Jul 14, 2024

  1. Merge pull request #43 from logchange/print-tabel

    Added `HofundConnectionsTable` to allow printing HofundConnection to …
    marwin1991 authored Jul 14, 2024
    Copy the full SHA
    b7e3479 View commit details
  2. Copy the full SHA
    a580e68 View commit details
  3. [Releasing new version]prepare release 2.1.0

    release-bot committed Jul 14, 2024
    Copy the full SHA
    4dd93cc View commit details
  4. Copy the full SHA
    9d72ff1 View commit details
  5. Merge pull request #44 from logchange/release

    release to main - preparation for next development cycle
    marwin1991 authored Jul 14, 2024
    Copy the full SHA
    7f8fe14 View commit details

Commits on Jul 15, 2024

  1. Sorting connections tabel by type

    pz2 committed Jul 15, 2024
    Copy the full SHA
    21a397b View commit details
  2. Sorting connections tabel by type

    pz2 committed Jul 15, 2024
    Copy the full SHA
    60a76b3 View commit details
  3. Merge pull request #45 from logchange/sorting

    Sorting connections tabel by type
    marwin1991 authored Jul 15, 2024
    Copy the full SHA
    8269ee5 View commit details
  4. Sorting connections tabel by type

    pz2 committed Jul 15, 2024
    Copy the full SHA
    6ccf281 View commit details

Commits on Jul 16, 2024

  1. Added request headers and ability to define it during testing connect…

    …ion using `AbstractHofundBasicHttpConnection`
    pz2 committed Jul 16, 2024
    Copy the full SHA
    6ac2bc3 View commit details
  2. Copy the full SHA
    c8468fd View commit details
  3. [Releasing new version]prepare release 2.2.0

    release-bot committed Jul 16, 2024
    Copy the full SHA
    a592032 View commit details
  4. Copy the full SHA
    c2a3830 View commit details
  5. Merge pull request #46 from logchange/release

    release to main - preparation for next development cycle
    marwin1991 authored Jul 16, 2024
    Copy the full SHA
    159d6f4 View commit details

Commits on Nov 18, 2024

  1. Copy the full SHA
    64f0d2d View commit details
  2. Changelog update

    witx98 committed Nov 18, 2024
    Copy the full SHA
    b355740 View commit details

Commits on Nov 19, 2024

  1. Added more precise OS metrics

    witx98 committed Nov 19, 2024
    Copy the full SHA
    d055e74 View commit details
  2. Changelog update

    witx98 committed Nov 19, 2024
    Copy the full SHA
    b4c16a4 View commit details
  3. Merge pull request #52 from witx98/031-os-metric

    Added more precise OS metrics
    marwin1991 authored Nov 19, 2024
    Copy the full SHA
    3b04531 View commit details
  4. Merge pull request #50 from witx98/003-db-type

    Added vendor information about db connection
    marwin1991 authored Nov 19, 2024
    Copy the full SHA
    3c577d4 View commit details
  5. Merge pull request #53 from logchange/sorting

    Sorting connections tabel by type
    marwin1991 authored Nov 19, 2024
    Copy the full SHA
    271d770 View commit details
  6. added auto publish

    marwin1991 authored Nov 19, 2024
    Copy the full SHA
    feabc45 View commit details

Commits on Nov 20, 2024

  1. Copy the full SHA
    5ef8b23 View commit details
  2. [Releasing new version]prepare release 2.3.0

    release-bot committed Nov 20, 2024
    Copy the full SHA
    5ee2e0a View commit details
  3. Copy the full SHA
    e7e464f View commit details
  4. Merge pull request #55 from logchange/release

    release to main - preparation for next development cycle
    marwin1991 authored Nov 20, 2024
    Copy the full SHA
    3fd8816 View commit details

Commits on Nov 22, 2024

  1. Added H2 database connection type

    Mateusz Witkowski committed Nov 22, 2024
    Copy the full SHA
    4bb1b81 View commit details

Commits on Nov 23, 2024

  1. Added H2 connection target

    witx98 committed Nov 23, 2024
    Copy the full SHA
    4b6039e View commit details
  2. Added tests

    witx98 committed Nov 23, 2024
    Copy the full SHA
    01cb662 View commit details
  3. Changelog update

    witx98 committed Nov 23, 2024
    Copy the full SHA
    4cf5252 View commit details

Commits on Nov 24, 2024

  1. Merge pull request #56 from witx98/h2-product-name

    Added H2 datasource type
    marwin1991 authored Nov 24, 2024
    Copy the full SHA
    d71d948 View commit details

Commits on Nov 27, 2024

  1. Fixed hofund connection tags

    Mateusz Witkowski committed Nov 27, 2024
    Copy the full SHA
    6dfe675 View commit details
  2. Changelog update

    Mateusz Witkowski committed Nov 27, 2024
    Copy the full SHA
    a4ff92f View commit details
  3. Changelog update

    witx98 committed Nov 27, 2024
    Copy the full SHA
    3fdb05b View commit details
  4. Merge branch 'master' into hofund-connection-tags

    # Conflicts:
    #	hofund-spring/src/main/java/dev/logchange/hofund/connection/spring/datasource/DataSourceConnectionFactory.java
    witx98 committed Nov 27, 2024
    Copy the full SHA
    96923db View commit details
  5. Merge pull request #58 from witx98/hofund-connection-tags

    Fixed hofund connection tags
    marwin1991 authored Nov 27, 2024
    Copy the full SHA
    ebce197 View commit details
  6. Subtitle tag fix

    witx98 committed Nov 27, 2024
    Copy the full SHA
    72aa085 View commit details
  7. Subtitle tag fix

    witx98 committed Nov 27, 2024
    Copy the full SHA
    295fbe7 View commit details
  8. Changelog update

    witx98 committed Nov 27, 2024
    Copy the full SHA
    9828d00 View commit details
  9. Merge pull request #59 from witx98/subtitle-tag

    Subtitle tag fix
    marwin1991 authored Nov 27, 2024
    Copy the full SHA
    a36f1eb View commit details
  10. Copy the full SHA
    b463126 View commit details
  11. [Releasing new version]prepare release 2.4.0

    release-bot committed Nov 27, 2024
    Copy the full SHA
    73ff97b View commit details
  12. Copy the full SHA
    b1c20e3 View commit details
Showing with 1,200 additions and 92 deletions.
  1. +42 −0 CHANGELOG.md
  2. +64 −3 README.md
  3. +12 −0 changelog/unreleased/000061-maven-deployment-config.yml
  4. +9 −0 changelog/v2.1.0/000001-simple_http_connections.yml
  5. +10 −0 changelog/v2.1.0/000002-print_connections_to_terminal.yml
  6. +1 −0 changelog/v2.1.0/release-date.txt
  7. +18 −0 changelog/v2.1.0/version-summary.md
  8. +8 −0 changelog/v2.2.0/000001-sorting_connections_tabel_by_type.yml
  9. +8 −0 changelog/v2.2.0/000002-request_headers_for_http_connections.yml
  10. +1 −0 changelog/v2.2.0/release-date.txt
  11. +21 −0 changelog/v2.2.0/version-summary.md
  12. +10 −0 changelog/v2.3.0/000003-db-type.yml
  13. +10 −0 changelog/v2.3.0/000031-os-metric.yml
  14. +1 −0 changelog/v2.3.0/release-date.txt
  15. +18 −0 changelog/v2.3.0/version-summary.md
  16. +12 −0 changelog/v2.4.0/000001-h2-connection.yml
  17. +11 −0 changelog/v2.4.0/000057-connection-tags-fix.yml
  18. +1 −0 changelog/v2.4.0/release-date.txt
  19. +21 −0 changelog/v2.4.0/version-summary.md
  20. +2 −2 grafana-dashboards/hofund-node-graph.json
  21. +14 −1 hofund-core/pom.xml
  22. +90 −0 hofund-core/src/main/java/dev/logchange/hofund/AsciiTable.java
  23. +25 −0 hofund-core/src/main/java/dev/logchange/hofund/connection/AbstractHofundBasicHttpConnection.java
  24. +10 −0 hofund-core/src/main/java/dev/logchange/hofund/connection/HofundConnection.java
  25. +7 −15 hofund-core/src/main/java/dev/logchange/hofund/connection/HofundConnectionMeter.java
  26. +41 −0 hofund-core/src/main/java/dev/logchange/hofund/connection/HofundConnectionsTable.java
  27. +16 −0 hofund-core/src/main/java/dev/logchange/hofund/connection/RequestHeader.java
  28. +20 −0 hofund-core/src/main/java/dev/logchange/hofund/connection/RequestMethod.java
  29. +57 −0 hofund-core/src/main/java/dev/logchange/hofund/connection/SimpleHofundHttpConnection.java
  30. +13 −1 hofund-core/src/main/java/dev/logchange/hofund/connection/Status.java
  31. +15 −7 hofund-core/src/main/java/dev/logchange/hofund/graph/edge/HofundEdgeMeter.java
  32. +12 −15 hofund-core/src/main/java/dev/logchange/hofund/graph/node/HofundNodeMeter.java
  33. +0 −2 hofund-core/src/main/java/dev/logchange/hofund/java/HofundJavaInfoMeter.java
  34. +8 −6 hofund-core/src/main/java/dev/logchange/hofund/os/HofundOsInfo.java
  35. +1 −0 hofund-core/src/main/java/dev/logchange/hofund/os/HofundOsInfoMeter.java
  36. +61 −0 hofund-core/src/test/java/dev/logchange/hofund/AsciiTableTest.java
  37. +154 −0 hofund-core/src/test/java/dev/logchange/hofund/connection/AbstractHofundBasicHttpConnectionTest.java
  38. +73 −0 hofund-core/src/test/java/dev/logchange/hofund/connection/HofundConnectionTest.java
  39. +86 −0 hofund-core/src/test/java/dev/logchange/hofund/connection/HofundConnectionsTableTest.java
  40. +5 −5 hofund-spring-boot-autoconfigure/pom.xml
  41. +23 −0 ...n/java/dev/logchange/hofund/connection/springboot/autoconfigure/ConnectionTabelAutoConfigure.java
  42. +0 −1 ...a/dev/logchange/hofund/connection/springboot/autoconfigure/HofundConnectionAutoConfiguration.java
  43. +1 −0 ...c/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
  44. +1 −2 hofund-spring-boot-e2e/pom.xml
  45. +9 −3 hofund-spring-boot-e2e/src/test/java/dev/logchange/hofund/os/HofundOsInfoE2ETest.java
  46. +15 −3 hofund-spring-boot-starter/pom.xml
  47. +5 −4 hofund-spring/pom.xml
  48. +12 −11 .../src/main/java/dev/logchange/hofund/connection/spring/datasource/DataSourceConnectionFactory.java
  49. +1 −0 ...d-spring/src/main/java/dev/logchange/hofund/connection/spring/datasource/DatabaseProductName.java
  50. +6 −4 ...-spring/src/main/java/dev/logchange/hofund/connection/spring/datasource/DatasourceConnection.java
  51. +50 −0 hofund-spring/src/main/java/dev/logchange/hofund/connection/spring/datasource/h2/H2Connection.java
  52. +8 −0 ...ring/src/main/java/dev/logchange/hofund/connection/spring/datasource/oracle/OracleConnection.java
  53. +7 −0 .../main/java/dev/logchange/hofund/connection/spring/datasource/postgresql/PostgreSQLConnection.java
  54. +42 −0 ...d-spring/src/test/java/dev/logchange/hofund/connection/spring/datasource/h2/H2ConnectionTest.java
  55. +14 −5 ...t/java/dev/logchange/hofund/connection/spring/datasource/postgresql/PostgreSQLConnectionTest.java
  56. +18 −2 pom.xml
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,48 @@
<!-- !!! ⚠️ DO NOT MODIFY THIS FILE, YOUR CHANGES WILL BE LOST ⚠️ !!! -->


[2.4.0] - 2024-11-27
--------------------

### Added (1 change)

- Added support for H2 datasource type !56 ([Mateusz Witkowski](https://github.com/witx98) @witx98)

### Fixed (1 change)

- Fixed an issue with registering hofund.node, caused by inconsistent sets of tag keys across different connection types !58 !59 #57 ([Mateusz Witkowski](https://github.com/witx98) @witx98)


[2.3.0] - 2024-11-20
--------------------

### Added (2 changes)

- Added vendor information about db connection !50 #3 ([Mateusz Witkowski](https://github.com/witx98) @witx98)
- Added more precise OS metrics !52 #31 ([Mateusz Witkowski](https://github.com/witx98) @witx98)


[2.2.0] - 2024-07-16
--------------------

### Added (1 change)

- Added request headers and ability to define it during testing connection using `AbstractHofundBasicHttpConnection` !45 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)

### Changed (1 change)

- Sorting connections tabel by type !45 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)


[2.1.0] - 2024-07-14
--------------------

### Added (2 changes)

- Added `SimpleHofundHttpConnection` to simplified configuration of HTTP connections and added ability to override `getRequestMethod()` in `AbstractHofundBasicHttpConnection` to allow using `POST` method. !42 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)
- Added `HofundConnectionsTable` to allow printing HofundConnection to terminal during booting up. !43 #26 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)


[2.0.0] - 2024-06-30
--------------------

67 changes: 64 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ hofund:
version: @project.version@
```

You can also overrride custom values for `GitInfo` metrics
You can also override custom values for `GitInfo` metrics
```properties
hofund.git-info.commit.id=someid # default value is equal to git.commit.id property from git.properties file generated by git-commit-id-maven-plugin
hofund.git-info.commit.id-abbrev=someAbbrevId # default value is equal to git.commit.id.abbrev
@@ -185,7 +185,31 @@ hofund_git_info{branch="master",build_host="DESKTOP-AAAAA",build_time="2023-02-1
### 4. Testing connections

You can define your own `HofundConnectionsProvider` but if you want to test HTTP connection the easiest way
is to extend `AbstractHofundBasicHttpConnection`. If your project is based on spring you can extend it like below:
is to configure `SimpleHofundHttpConnection` or extend `AbstractHofundBasicHttpConnection`. If your project is based on spring you can extend it like below:

```java
package dev.logchange.hofund.testapp.stats.health;
import dev.logchange.hofund.connection.SimpleHofundHttpConnection;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Bean;
@Configuration
public class SimpleHofundHttpConnectionConfiguration {
@Bean
public SimpleHofundHttpConnection paymentApiSimpleHofundHttpConnection(){
return new SimpleHofundHttpConnection("payment-api", "http://host.docker.internal:18083/actuator/health/info");
}
@Bean
public SimpleHofundHttpConnection cartApiSimpleHofundHttpConnection(){
return new SimpleHofundHttpConnection("car-api", "http://host.docker.internal:18084/actuator/health/info");
}
}
```

```java
@@ -205,7 +229,7 @@ public class PaymentsHealthCheck extends AbstractHofundBasicHttpConnection {
@Value("${hofund.connection.payment.url:http://host.docker.internal:18083/}")
private String basicUrl;
@Value("${hofund.connection.payment.url.suffix:actuator/health}")
@Value("${hofund.connection.payment.url.suffix:actuator/health/info}")
private String urlSuffix;
@Override
@@ -225,6 +249,10 @@ public class PaymentsHealthCheck extends AbstractHofundBasicHttpConnection {
Extending `AbstractHofundBasicHttpConnection` is really simple, you only have to overrider `getTarget()`
and `getUrl()` methods. The example above allows you to change values through spring application properties.

If you want to use f.e `POST` method, you can use `new SimpleHofundHttpConnection("abc", "some_url", RequestMethod.POST)` or override `getRquestMethod()`.

If you don't want to test connection in some conditions, you can use `new SimpleHofundHttpConnection("abc", "some_url", CheckingStatus.INACTIVE)` or override `getCheckingStatus()`.

### 5. Metrics description

- `hofund_info` - used to detect if application is running and what version is used. Application name and id
@@ -246,6 +274,39 @@ and `getUrl()` methods. The example above allows you to change values through sp
- PostgreSQL
- Oracle

### 7. Connection Tabel

This simple functionality allows to print connections status in logger during booting up!

```txt
+----------+--------------+----------+----------------------------------------------+
| TYPE | NAME | STATUS | URL |
+----------+--------------+----------+----------------------------------------------+
| DATABASE | mydb | UP | jdbc:postgresql://localhost:5432/mydb |
| DATABASE | mydb2 | UP | jdbc:mysql://localhost:3306/mydb2 |
| DATABASE | orcl | DOWN | jdbc:oracle:thin:@localhost:1521:orcl |
| HTTP | external-api | UP | https://api.external-service.com |
| HTTP | internal-api | UP | https://api.internal-service.local |
| HTTP | public-API | INACTIVE | https://api.public-service.com |
+----------+--------------+----------+----------------------------------------------+
```

You can achieve this by creating simple class:

```java
@Slf4j
@Configuration
public class PrintHofundConnectionsTabel {
@Bean
public CommandLineRunner demo(HofundConnectionsTable connectionsTable) {
return (args) -> {
log.info(connectionsTable.print());
};
}
}
```

# Grafana Dashboards

## [hofund-node-graph.json](https://github.com/logchange/hofund/raw/master/grafana-dashboards/hofund-node-graph.json)
12 changes: 12 additions & 0 deletions changelog/unreleased/000061-maven-deployment-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
title: Changed maven deployment configuration. Updated modules descriptions.
authors:
- name: Mateusz Witkowski
nick: witx98
url: https://github.com/witx98
type: changed #[added/changed/deprecated/removed/fixed/security/other]
issues:
- 61
merge_requests:
- 62
- 63
- 64
9 changes: 9 additions & 0 deletions changelog/v2.1.0/000001-simple_http_connections.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Added `SimpleHofundHttpConnection` to simplified configuration of HTTP connections and added ability to override
`getRequestMethod()` in `AbstractHofundBasicHttpConnection` to allow using `POST` method.
authors:
- name: Peter Zmilczak
nick: marwin1991
url: https://github.com/marwin1991
type: added #[added/changed/deprecated/removed/fixed/security/other]
merge_requests:
- 42
10 changes: 10 additions & 0 deletions changelog/v2.1.0/000002-print_connections_to_terminal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Added `HofundConnectionsTable` to allow printing HofundConnection to terminal during booting up.
authors:
- name: Peter Zmilczak
nick: marwin1991
url: https://github.com/marwin1991
type: added #[added/changed/deprecated/removed/fixed/security/other]
issues:
- 26
merge_requests:
- 43
1 change: 1 addition & 0 deletions changelog/v2.1.0/release-date.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-07-14
18 changes: 18 additions & 0 deletions changelog/v2.1.0/version-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- @formatter:off -->
<!-- noinspection -->
<!-- Prevents auto format, for JetBrains IDE File > Settings > Editor > Code Style (Formatter Tab) > Turn formatter on/off with markers in code comments -->

<!-- This file is automatically generate by logchange tool 🌳 🪓 => 🪵 -->
<!-- Visit https://github.com/logchange/logchange and leave a star 🌟 -->
<!-- !!! ⚠️ DO NOT MODIFY THIS FILE, YOUR CHANGES WILL BE LOST ⚠️ !!! -->


[2.1.0] - 2024-07-14
--------------------

### Added (2 changes)

- Added `SimpleHofundHttpConnection` to simplified configuration of HTTP connections and added ability to override `getRequestMethod()` in `AbstractHofundBasicHttpConnection` to allow using `POST` method. !42 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)
- Added `HofundConnectionsTable` to allow printing HofundConnection to terminal during booting up. !43 #26 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)


8 changes: 8 additions & 0 deletions changelog/v2.2.0/000001-sorting_connections_tabel_by_type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Sorting connections tabel by type
authors:
- name: Peter Zmilczak
nick: marwin1991
url: https://github.com/marwin1991
type: changed #[added/changed/deprecated/removed/fixed/security/other]
merge_requests:
- 45
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Added request headers and ability to define it during testing connection using `AbstractHofundBasicHttpConnection`
authors:
- name: Peter Zmilczak
nick: marwin1991
url: https://github.com/marwin1991
type: added #[added/changed/deprecated/removed/fixed/security/other]
merge_requests:
- 45
1 change: 1 addition & 0 deletions changelog/v2.2.0/release-date.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-07-16
21 changes: 21 additions & 0 deletions changelog/v2.2.0/version-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- @formatter:off -->
<!-- noinspection -->
<!-- Prevents auto format, for JetBrains IDE File > Settings > Editor > Code Style (Formatter Tab) > Turn formatter on/off with markers in code comments -->

<!-- This file is automatically generate by logchange tool 🌳 🪓 => 🪵 -->
<!-- Visit https://github.com/logchange/logchange and leave a star 🌟 -->
<!-- !!! ⚠️ DO NOT MODIFY THIS FILE, YOUR CHANGES WILL BE LOST ⚠️ !!! -->


[2.2.0] - 2024-07-16
--------------------

### Added (1 change)

- Added request headers and ability to define it during testing connection using `AbstractHofundBasicHttpConnection` !45 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)

### Changed (1 change)

- Sorting connections tabel by type !45 ([Peter Zmilczak](https://github.com/marwin1991) @marwin1991)


10 changes: 10 additions & 0 deletions changelog/v2.3.0/000003-db-type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Added vendor information about db connection
authors:
- name: Mateusz Witkowski
nick: witx98
url: https://github.com/witx98
type: added #[added/changed/deprecated/removed/fixed/security/other]
issues:
- 3
merge_requests:
- 50
10 changes: 10 additions & 0 deletions changelog/v2.3.0/000031-os-metric.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: Added more precise OS metrics
authors:
- name: Mateusz Witkowski
nick: witx98
url: https://github.com/witx98
type: added #[added/changed/deprecated/removed/fixed/security/other]
issues:
- 31
merge_requests:
- 52
1 change: 1 addition & 0 deletions changelog/v2.3.0/release-date.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-11-20
18 changes: 18 additions & 0 deletions changelog/v2.3.0/version-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- @formatter:off -->
<!-- noinspection -->
<!-- Prevents auto format, for JetBrains IDE File > Settings > Editor > Code Style (Formatter Tab) > Turn formatter on/off with markers in code comments -->

<!-- This file is automatically generate by logchange tool 🌳 🪓 => 🪵 -->
<!-- Visit https://github.com/logchange/logchange and leave a star 🌟 -->
<!-- !!! ⚠️ DO NOT MODIFY THIS FILE, YOUR CHANGES WILL BE LOST ⚠️ !!! -->


[2.3.0] - 2024-11-20
--------------------

### Added (2 changes)

- Added vendor information about db connection !50 #3 ([Mateusz Witkowski](https://github.com/witx98) @witx98)
- Added more precise OS metrics !52 #31 ([Mateusz Witkowski](https://github.com/witx98) @witx98)


12 changes: 12 additions & 0 deletions changelog/v2.4.0/000001-h2-connection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is used by logchange tool to generate CHANGELOG.md 🌳 🪓 => 🪵
# Visit https://github.com/logchange/logchange and leave a star 🌟
# More info about configuration you can find https://github.com/logchange/logchange#yaml-format ⬅️⬅ ️
title: Added support for H2 datasource type
authors:
- name: Mateusz Witkowski
nick: witx98
url: https://github.com/witx98
merge_requests:
- 56
type: added

11 changes: 11 additions & 0 deletions changelog/v2.4.0/000057-connection-tags-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: Fixed an issue with registering hofund.node, caused by inconsistent sets of tag keys across different connection types
authors:
- name: Mateusz Witkowski
nick: witx98
url: https://github.com/witx98
type: fixed #[added/changed/deprecated/removed/fixed/security/other]
issues:
- 57
merge_requests:
- 58
- 59
1 change: 1 addition & 0 deletions changelog/v2.4.0/release-date.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2024-11-27
21 changes: 21 additions & 0 deletions changelog/v2.4.0/version-summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- @formatter:off -->
<!-- noinspection -->
<!-- Prevents auto format, for JetBrains IDE File > Settings > Editor > Code Style (Formatter Tab) > Turn formatter on/off with markers in code comments -->

<!-- This file is automatically generate by logchange tool 🌳 🪓 => 🪵 -->
<!-- Visit https://github.com/logchange/logchange and leave a star 🌟 -->
<!-- !!! ⚠️ DO NOT MODIFY THIS FILE, YOUR CHANGES WILL BE LOST ⚠️ !!! -->


[2.4.0] - 2024-11-27
--------------------

### Added (1 change)

- Added support for H2 datasource type !56 ([Mateusz Witkowski](https://github.com/witx98) @witx98)

### Fixed (1 change)

- Fixed an issue with registering hofund.node, caused by inconsistent sets of tag keys across different connection types !58 !59 #57 ([Mateusz Witkowski](https://github.com/witx98) @witx98)


4 changes: 2 additions & 2 deletions grafana-dashboards/hofund-node-graph.json
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": " (sum by (id, source, target, type) (0 * sum_over_time(hofund_edge[1w])))\r\n * on (id) group_left (mainstat)\r\n (\r\n count_values without () (\r\n \"mainstat\",\r\n sum by (id) (sum by (id) (sum without () (hofund_connection) or (0 * sum_over_time(hofund_connection[1d]))))\r\n )\r\n )\r\n* on (id) group_left (secondarystat)\r\n (\r\n count_values without () (\r\n \"secondarystat\",\r\n round(\r\n avg_over_time(((sum without () (hofund_connection) or (0 * sum_over_time(hofund_connection[1d]))) >= 0)[1d:5m]),\r\n 0.001\r\n )\r\n )\r\n )",
"expr": " (sum by (id, source, target, type) (0 * sum_over_time(hofund_edge[1w])))\r\n * on (id) group_left (mainstat)\r\n (\r\n count_values without () (\r\n \"mainstat\",\r\n sum by (id) (sum by (id) (sum without () (hofund_connection) or (0 * sum_over_time(hofund_connection[1d]))))\r\n )\r\n )\r\n* on (id) group_left (secondarystat)\r\n (\r\n count_values without () (\r\n \"secondarystat\",\r\n round(\r\n avg_over_time(((sum without () (hofund_connection) or (0 * sum_over_time(hofund_connection[1d]))))[1d:5m]),\r\n 0.001\r\n )\r\n )\r\n )",
"format": "table",
"hide": false,
"instant": true,
@@ -116,4 +116,4 @@
"uid": "jF_6aHZ4z",
"version": 2,
"weekStart": ""
}
}
15 changes: 14 additions & 1 deletion hofund-core/pom.xml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<parent>
<groupId>dev.logchange.hofund</groupId>
<artifactId>hofund</artifactId>
<version>2.0.0</version>
<version>2.5.0-SNAPSHOT</version>
</parent>

<artifactId>hofund-core</artifactId>
@@ -30,5 +30,18 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>

<dependency>
<groupId>com.github.oshi</groupId>
<artifactId>oshi-core</artifactId>
<version>${oshi-core.version}</version>
</dependency>

<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>${mockwebserver.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Loading