diff --git a/config.yml.dist b/config.yml.dist index e6040c89..e5fbd5bf 100644 --- a/config.yml.dist +++ b/config.yml.dist @@ -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: