Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Server Input Plugin - Some counters are missing with CS or BIN server collations #6867

Closed
mikedavem opened this issue Jan 6, 2020 · 0 comments · Fixed by #6869
Closed
Labels
area/sqlserver bug unexpected problem or unintended behavior
Milestone

Comments

@mikedavem
Copy link

Relevant telegraf.conf:

[[inputs.sqlserver]]

  servers = [
     "Server=xxxx;Port=xxxx;User Id=telegraf;Password=xxxx;app name=telegraf;log=1;"
  ]

  query_version = 2

  ## If you would like to exclude some of the metrics queries, list them here
  ## Possible choices:
  ## - PerformanceCounters
  ## - WaitStatsCategorized
  ## - DatabaseIO
  ## - DatabaseProperties
  ## - CPUHistory
  ## - DatabaseSize
  ## - DatabaseStats
  ## - MemoryClerk
  ## - VolumeSpace
  ## - Schedulers
  ## - AzureDBResourceStats
  ## - AzureDBResourceGovernance
  ## - SqlRequests
  ## - ServerProperties
  ## exclude_query = ['PerformanceCounters']

System info:

Microsoft Windows Server 2016 Datacenter

Steps to reproduce:

  1. With SQL Server collation Latin1_General_100_BIN2

Expected behavior:

All counters defined in PerformanceCounters metric queries should be collected

Actual behavior:

Some counters PerformanceCounters metric queries are not collected due to their wrong case if we are using CS or BIN based server collation including:

'Page Lookups/sec' --> 'Page lookups/sec'
'Page Reads/sec' --> 'Page reads/sec',
'Page Writes/sec' --> 'Page writes/sec',
'Readahead Pages/sec' --> 'Readahead pages/sec'
'Lazy Writes/sec' --> Lazy writes/sec
'Checkpoint Pages/sec' --> Checkpoint pages/sec
'Group Commits/sec' --> Group Commits/Sec

Additional info:

@mikedavem mikedavem changed the title SQL Server Input Plugin - Some counters are missing with server CS or BIN collations SQL Server Input Plugin - Some counters are missing with CS or BIN server collations Jan 6, 2020
@danielnelson danielnelson added this to the 1.14.0 milestone Jan 9, 2020
@danielnelson danielnelson added area/sqlserver bug unexpected problem or unintended behavior labels Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sqlserver bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants