Skip to content

Commit

Permalink
Merge pull request #235 from sentrysoftware/feature/issue-230-documen…
Browse files Browse the repository at this point in the history
…t-sql-source-and-add-module-entry-in-readme

Issue #230: Document SQL Source and add module entry in README
  • Loading branch information
NassimBtk committed Jun 6, 2024
2 parents d03e152 + 29b8db4 commit fe4e61e
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This is a multi-module project:
* **metricshub-snmp-extension-common**: Contains common functionalities and utilities used by SNMP-based extensions.
* **metricshub-snmp-extension**: Enables Simple Network Management Protocol (SNMP) for monitoring and managing network devices.
* **metricshub-snmpv3-extension**: Adds support for SNMPv3, which includes enhanced security features like authentication and encryption.
* **metricshub-sql-h2-source-extension**: Allows execution of SQL queries on already existing sources.
* **metricshub-win-extension-common**: Contains common functionalities and utilities used by Windows-specific extensions.
* **metricshub-wmi-extension**: Provides support for Windows Management Instrumentation (WMI) to gather detailed information about Windows systems.
* **metricshub-winrm-extension**: Enables the use of Windows Remote Management (WinRM) for remote management and monitoring of Windows-based systems.
Expand Down
13 changes: 13 additions & 0 deletions metricshub-doc/src/site/markdown/develop/connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,19 @@ monitors:
concatStart: # <string>
concatEnd: # <string>
computes: <compute-object-array>
# SQL Source
<sql-sourceKey>: # <source-object>
<sourceKey>:
type: sql
tables: <sqltable-object-array>
- source: <string>
alias: <string>
columns: <sqlcolumn-object-array>
- name: <string>
number: <integer>
type: <string>
query: <string>
computes: <compute-object-array>

# Computes
<sourceKey>: # <source-object>
Expand Down
28 changes: 28 additions & 0 deletions metricshub-doc/src/site/markdown/develop/sources/sql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
keywords: sql, h2, database
description: The SQL source allows to perform SQL queries on other Sources.

# SQL Source

```yaml
connector:
# ...
pre: # <object>
<sourceKey>: # <source-object>

monitors:
<monitorType>: # <object>
<job>: # <object>
sources: # <object>
<sourceKey>:
type: sql
tables: <sqltable-object-array>
- source: <string>
alias: <string>
columns: <sqlcolumn-object-array>
- name: <string>
number: <integer>
type: <string>
query: <string>
computes: <compute-object-array>
```

1 change: 1 addition & 0 deletions metricshub-doc/src/site/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<item name="WMI" href="develop/sources/wmi.html" />
<item name="Static (Constant)" href="develop/sources/static.html" />
<item name="Copy (Duplicate)" href="develop/sources/copy.html" />
<item name="SQL" href="develop/sources/sql.html" />
<item name="Pre-Sources" href="develop/sources/pre.html" />
</item>
<item name="Computes" href="develop/computes/index.html" >
Expand Down

0 comments on commit fe4e61e

Please sign in to comment.