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

Report SQL server correctly #1069

Merged
merged 23 commits into from
Aug 7, 2014
Merged

Report SQL server correctly #1069

merged 23 commits into from
Aug 7, 2014

Conversation

bunelr
Copy link
Contributor

@bunelr bunelr commented Aug 5, 2014

Fixes for the problem that @tmichelet was trying to fix with #968.

What the issue is: Most of the metrics we report from SQL Server are not reported correctly

How to fix it: Microsoft documentation explains how to do it properly. Each counter has associated with him a value cntr_type explaining how to report it. We can read this value and report the metric accordingly. This is preferred to setting the report method in advance because some metrics may change type between different verisons / OS

Implementation info: In order to not break existing setup of users, the "type" (rate, gauge, histogram) attributes in the config is supported and overwrite any determination that we do ourselves.

@tmichelet @conorbranagan if you want to take a look.

)
try:
cursor.execute('''
select distinct counter_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use a constant for that instead of having the query in the middle of the code ?

@LeoCavaille
Copy link
Member

Nice work Rudy 👍

Rudy added 2 commits August 6, 2014 12:12
#
# - name: sqlserver.clr.execution
# type: gauge
# counter_name: CLR Execution
#
# This counter has multiple instances assocaited with it and we're
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the "assocaited" while you're there ? :)

@remh remh added this to the 5.0 milestone Aug 7, 2014
bunelr added a commit that referenced this pull request Aug 7, 2014
@bunelr bunelr merged commit 0aa6c0b into master Aug 7, 2014
@remh remh deleted the rudy/sqlserver branch November 25, 2014 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants