Patrick Partin What just happened?

Slides:



Advertisements
Similar presentations
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Administering Your.
Advertisements

The easy way to a nice looking website design By a total non-designer (Me!)
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
SQL Server 2008 R2 for the DBA Patrick LeBlanc. Objectives  New Editions  Datacenter  Parallel Data Warehouse  Multi-server management  Utility Control.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 18/06/2016David Postlethwaite.
Let’s Get Started! Steve Rezhener SQL Malibu and SQL Saturday in LA
IT06 – HAVE YOUR OWN DYNAMICS NAV TEST ENVIRONMENT IN 90 MINUTES
Essentials of UrbanCode Deploy v6.1 QQ147
Managing Your Literature Search Using Zotero
Discussion #11 11/21/16.
An Refresher and How-To Profile Data using SQL
Make Power BI Your Own with the Power BI APIs
Automated Enterprise-wide SQL Server Auditing
Make Power BI Your Own with the Power BI APIs
Solving the Hard Problems
SSIS Project Deployment: The T-SQL Way
Data Analysis with SQL Window Functions
Reporting Overview Business Goals Demystify the report menu
Deploying and Configuring SSIS Packages
Andrew Pruski SQL Server & Containers
Fast Action Links extension A love letter to CiviCRM
Simplifying XEvents Management with dbatools
Managing Your Literature Search Using Zotero
Introducing the SQL Server 2016 Query Store
Introducing the SQL Server 2016 Query Store
Database Code Management with VS 2017 and RedGate
Populating a Data Warehouse
Populating a Data Warehouse
Save Time & Resources: Job Performance Tuning Strategies
5 WAYS TO BYPASS *OR ENSURE* SQL SERVER SECURITY MATT MARTIN
It’s About Time : Temporal Table Support in SQL Server 2016/2017
Transforming Your Brain with SQL 2017 on Linux
A Corporate-Wide Reports Distribution System < $1000 You Bet!
Understanding Your Numbers: Data Visualisation with PowerBI
Introducing the SQL Server 2016 Query Store
Stop Wasting Time & Resources: Performance Tune Your Jobs
SSIS Project Deployment: The T-SQL Way
Populating a Data Warehouse
The Mac DBA, using Docker and SQL Operations Studio
Let’s Get Started! Rick Lowe
Microsoft Azure for SQL Server Professionals
Cloud Data Replication with SQL Data Sync
SQL Server Security 101 How did you get in here, and
Save Time & Resources: Job Performance Tuning Strategies
Get your ETL flow under statistical process control
Data Analysis with SQL Window Functions
SQL Saturday San Diego #802
Office 365.
Patrick Flynn | Link Group Australia
Git started with git: 2018 edition
Microsoft SQL Server Upgrade and Downgrade scenarios
Collecting Performance Metrics
Get More Than CRUD From Your ORM
IBM Lotus Domino 7 Meets IBM DB2
SQL Server Security 101 How did you get in here, and
Dell EMC SQL Server Solutions Doug Bernhardt
Michael Wall Senior DBA, Great Western Malting
Michelle Haarhues Keeping up with SSMS.
The Fast and Easy Methods to Automate your SQL Server builds
Patrick Partin What just happened?
Welcome to 2019 SQL Saturday in Los Angeles (#891)
SSRS – Thinking Outside the Report
Patrick Partin What just happened? Creating your own real-time dashboard with Grafana, Influx, and Telegraf Congratulations on successfully downloading.
Simplify your daily tasks with DBATools!
Power BI Security Fundamentals
Do-It-Yourself Performance Monitoring
Azure SQL Database Lessons Learned From the Trenches Best practices, Tips and Tricks on monitoring and improving performance. Fernando Cobo.
Vendor Software Lessons From Consulting Vendor Software.
An Introduction to Partitioning
Presentation transcript:

Patrick Partin What just happened? Creating your own real-time dashboard with Grafana, Influx, and Telegraf Congratulations on successfully downloading this slide deck! Inside is valuable information, and since there’s absolutely no cost other than your time, why not try it out?

Thanks to our Sponsors Big ups to these fine companies who make our jobs easier, and go out of their way to sponsor our day of nerding. Without them, I’d be doing this whole presentation to my dogs. #SQLSatSanDiego

Session Agenda Influx Telegraf Grafana Install and Configure it to store your data Telegraf Install and Configure to pull and push to Influx Grafana Install and Configure to pull from Influx Create a few simple Dashboards Create an Alert that when triggered, posts to Slack Show them that you mean business, unzips those zips -- RIGHT IN FRONT OF THEIR VERY EYES! 3 | #SQLSatSanDiego

Background Patrick Partin Admin, Architect, DBA, Developer, Engineer Manager of Data and Systems Infrastructure @ SmartDrive 20+ years trying to make cars and dbs as fast as can be @GingerDBA – Twitter @Paddyrick – SQLCommunity.Slack.com Nobody _really_ cares. That’s okay, you’re still great. Move on to the next slide. 4 | #SQLSatSanDiego

Orange County User Group Orange County Power BI User Group Regional Local User Groups LA Data Platform (a.k.a. SQL Malibu) 3rd Wednesday of each month ladataplatform.pass.org - Join us remotely! L.A. User Group 3rd Thursday of each odd month sqlla.pass.org Los Angeles - Korean Every Other Tuesday sqlangeles.pass.org San Diego User Group 1st & 3rd Thursday of each month meetup.com/sdsqlug meetup.com/sdsqlbig Orange County User Group 2rd Thursday of each month bigpass.pass.org Orange County Power BI User Group meetup.com/OC-Power-BI-User-Group/ Sacramento User Group 1st Wednesday of each month http://sac.pass.org/ I will try my best to be subjective, but I’ve got a pretty strong feeling that all of these are great groups. If you aren’t already going to every single one of them, what’s wrong with you? #SQLSatSanDiego

If you want to follow along… Influx 1.7.8 – 49mb Telegraf 1.12.1 – 20mb https://portal.influxdata.com/downloads/ Grafana 6.3.5 – 52mb https://grafana.com/get/ Slack – 0mb https://slack.com/create/ Today, I will show you this starter set which works, I swear. The beauty of this, is that it’s so flexible, and can work with just about anything, especially as you become more polyglot. 6 | #SQLSatSanDiego

? In all seriousness, knowing your data is important. For Data Professionals, capturing, tracking, and displaying data shouldn’t be a blocker to your success. #SQLSatSanDiego

Time Structured Merge Tree Data Acquisition Push/Pull Data Storage Time Structured Merge Tree Show n’ Tell – Quick stack overview Data Visualization Alerting Monitoring

Install InfluxDB Demo Things I’m not covering Firewall : Inbound / TCP Port 8086 (Default client/server port) Windows - using NSSM to run as a service - Github link shows it Linux/macOS – InfluxData Documentation for all major distros Pretty much straight out of the box, and on your desktop. Run InfluxD.exe in a command prompt window, and the Influx.exe in another. #SQLSatSanDiego

InfluxDB Quickies CasE SenSITiVe select * X limit 5 instead of select top 5 * X Influx <-> SQL speak Measurements <-> Table Series <-> Columns Tag – Optional Metadata that’s indexed Field – Required metadata that’s not indexed There is soooooooo much more about this database that I love and wish that I could cover, but 60 minutes goes pretty fast when you talk as much as I do.. #SQLSatSanDiego

Install Telegraf Demo Things I’m not covering: Firewall If you’re pushing, outbound access to the InfluxDB’s 8086 If you’re pulling, you need outbound to your destination, Also inbound to go there, many go over app’s main port Windows/Linux/macOS – Install as Service We’re going to do it twice, OMG! #SQLSatSanDiego

Telegraf setup to pull SQL Server DMV On the SQL Server, so you can touch those DMV’s Azure SQL? USE master; GO CREATE LOGIN [telegraf] WITH PASSWORD = N'mystrongpassword’; GRANT VIEW SERVER STATE TO [telegraf]; GRANT VIEW ANY DEFINITION TO [telegraf]; CREATE USER [telegraf] WITH PASSWORD = N'mystrongpassword’; GO GRANT VIEW DATABASE STATE TO [telegraf]; In Telegraf.conf, so you can go pull the data # Read metrics from Microsoft SQL Server [[inputs.sqlserver]] ## Specify instances to monitor with a list of connection strings. ## All connection parameters are optional. ## By default, the host is localhost, listening on default port, TCP 1433. ## for Windows, the user is the currently running AD user (SSO). ## See https://github.com/denisenkom/go-mssqldb for detailed connection ## parameters, in particular, tls connections can be created like so: ## "encrypt=true;certificate=<cert>;hostNameInCertificate=<SqlServer host fqdn>" # servers = [ # "Server=192.168.1.10;Port=1433;User Id=<user>;Password=<pw>;app name=telegraf;log=1;", # ] ## Optional parameter, setting this to 2 will use a new version ## of the collection queries that break compatibility with the original ## dashboards. All new functionality is under V2 query_version = 2 Github Source #SQLSatSanDiego

Telegraf Quickies InfluxDB is schema on write typeperf –q Database and Measurements created on the fly typeperf –q List all of the hosts’s available perf counters Different hosts, different counters available Awkward, but… Outputs are where the Telegraf instance will put it Inputs are what the Telegraf instance gets it from Pretty much sums it up. #SQLSatSanDiego

Install Grafana Demo Things I’m not covering: Firewall : Inbound to the port we choose Installing as a service Windows - NSSM (yes, again) Linux/macOS/Docker This program is so seriously sweet. This space is getting crowded, but it’s awfully hard to find something better. #SQLSatSanDiego

Grafana Quickies In \conf, copy sample.ini to custom.ini Uncomment the port, defaulted to 3000 Tons of config options to fit your need Use Influx to show the raw data Gauge Think thermostat 72, 72, 71, 72, 72, 71 Use last? Use max? Use average? Counter Ever-increasing count, usually huge numbers Non-Negative Derivative? Difference? This has such amazing community support, amazing to see how much it has grown in just the few years I’ve been doing this talk. #SQLSatSanDiego

Wrapping this session up - We built a db server to take metrics We pulled SQL Performance Counter DMVs We pushed Windows Perf Counters We were able to create some simple dashboards, and configure thresholds and alerts We were able to create an alert to write Slack You’ve been a great crowd, all four of you. 16 | #SQLSatSanDiego

More Information, and it’s all free Telegraf does LOTS more than I covered https://github.com/influxdata/telegraf#input-plugins https://github.com/influxdata/telegraf#output-plugins Grafana has plenty of generic dashboards https://grafana.com/dashboards/ SQL Server 2017 Developer Edition (free!) https://go.microsoft.com/fwlink/?linkid=853016 If serving from Windows, you’ll need NSSM https://nssm.cc/ Free! Say Free one more time! 17 | #SQLSatSanDiego

Questions? Thanks for your time today, and enjoy the rest of SQL Saturday San Diego If not, catch me after the session, or on the interwebs… Thank you! 18 | #SQLSatSanDiego