Skip to content

Commit

Permalink
Merge pull request #109 from ilantnt/ilantnt/mssql-config-doc
Browse files Browse the repository at this point in the history
Added documentation upon configuration of MSSQL connections
  • Loading branch information
dewey committed Nov 15, 2023
2 parents a035d4c + 10fcb66 commit a339e17
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ jobs:
split_part(inet_server_addr()::text, '/', 1) AS hostname,
lag::float AS replication_lag
FROM lag
- name: "mssql"
interval: '5m'
connections:
- 'sqlserver://username:password@host?database=mssqlDB'
queries:
- name: "user_amount"
help: "Count users in Database"
labels:
- "app"
values:
- "users"
query: |
SELECT application as app, count(*) as users
FROM mssqlDB
GROUP by app;
- name: "mydb"
interval: '5m'
connections:
Expand Down

0 comments on commit a339e17

Please sign in to comment.