Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Add necessary configuration files for use by unit tests. #20

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Configuration files
newrelic.json
plugin.json
# but track test config files
!src/NewRelic.Microsoft.SqlServer.Plugin.Tests/config/newrelic.json
!src/NewRelic.Microsoft.SqlServer.Plugin.Tests/config/plugin.json

# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"license_key": "FooGuid",
"log_level": "info",
"log_file_name": "newrelic_plugin.log",
"log_file_path": "logs",
"poll_interval": "45"
}
42 changes: 42 additions & 0 deletions src/NewRelic.Microsoft.SqlServer.Plugin.Tests/config/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"agents": [
{
"_comment": "This is an example of how you would monitor an on-premises SQL instance, remove this section if you are not using SQL Server or duplicate this section if you have multiple servers.",
"type": "sqlserver",
"name": "Local",
"connectionString": "Server=.;Database=master;Trusted_Connection=True;",
"includeSystemDatabases": "true",
"_includesComment": "An array of JSON objects containing a property 'name' which is the name of the database you would like to include in your monitoring.",
"includes": [
{ "name": "Northwind", "displayName": "Southbreeze" },
{ "name": "tempdb", "displayName": "tempdb" },
{ "name": "master", "displayName": "master" },
{ "name": "model", "displayName": "model" },
{ "name": "msdb", "displayName": "msdb" }
],
"excludes": [

]
},
{
"_comment": "This is an example of how you would monitor an on-premises SQL instance, remove this section if you are not using SQL Server or duplicate this section if you have multiple servers.",
"type": "sqlserver",
"name": "Important Server",
"connectionString": "Server=192.168.10.123,1234;Database=master;User Id=foo;Password=bar;",
"excludes": [
{ "name": "foo", "displayName": "foo" },
{ "name": "bar", "displayName": "bar" }
]
},
{
"_comment": "This is an example of how you would monitor a SQL Azure instance, remove this section if you are not using SQL Azure or duplicate this section if you have multiple servers.",
"type": "azure",
"name": "CloudFtw",
"connectionString": "Server=zzz,1433;Database=CloudFtw;User ID=NewRelic;Password=aaa;Trusted_Connection=false;Encrypt=true;Connection Timeout=30;",
"excludes": [
{ "name": "foo", "displayName": "foo" },
{ "name": "bar", "displayName": "bar" }
]
}
]
}