Using Grafana to show Postgres Statistics

Slides:



Advertisements
Similar presentations
1 Trieste, April 17 th 2008Lucio Zambon Electronic Graphic Interface for Global Archiving Technology: PHP, MySQL, JavaScript, JPGraph, etc Development.
Advertisements

Reports PowerPoint Presentation Prepared by NFS Please follow the instructions at the top of each slide. Click anywhere to begin.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 3 1 Microsoft Office Excel 2003 Tutorial 3 – Developing a Professional- Looking.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
Using Charts in a Presentation Lesson 6. Software Orientation Charts can help your audience understand relationships among numerical values. The figure.
Printing and Page Formatting ITSW 1401, Intro to Word Processing Instructor: Glenda H. Easter.
Toll Free: Project Manager Tutorial.
CTS130 Spreadsheet Lesson 3 Using Editing and Formatting Tools.
European Computer Driving Licence Syllabus version 5.0 Module 4 – Spreadsheets Chapter 22 – Functions Pass ECDL5 for Office 2007 Module 4 Spreadsheets.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
Website Development with Dreamweaver
Microsoft Office Excel 2003 Tutorial 3 – Developing a Professional-Looking Worksheet.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
DAY 6: MICROSOFT EXCEL – CHAPTER 3 Sravanthi Lakkimsetty September 2, 2015.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
SOC 305, Prof. Robert Martin Southeastern Louisiana University.
Quality Education for a Healthier Scotland New Features of the Clinical Knowledge Publisher May 2016.
Data Visualization with Tableau
General System Navigation
Building Dashboards with JMP 13 Dan Schikore SAS, JMP
Lesson 4: Working with Charts and Tables
NETSTORM.
with a few tips and tools for managing mail
Landscape Institute Introducing the new Branch Websites
Creating Oracle Business Intelligence Interactive Dashboards
Gadgets and Dashboards
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Chapter 1: An Introduction to Visual Basic 2015
D.Y.O. Web The new and easy way to create and maintain your own professional dynamic website.
CARA 3.10 Major New Features
Configuring Applications
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
Kanban Task Manager SharePoint Editions ‒ Introduction
Word and the Writing Process
Tips and tools for managing the new interface
Using the INSERT TAB in MS Word 2007
(Global / All Markets View)
Boeing Supply Chain Platform (BSCP) Detailed Training
Shine Insight Reporting 101
BOLD 2.0 Navigation Help Guide.
How to customize your Microsoft SharePoint Online website
1CapApp Company Setup Documentation
Excel 1 Microsoft Office 2013.
Unit 7 – Excel Graphs.
Windows Internet Explorer 7-Illustrated Essentials
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
1CapApp Company Setup Documentation
Chapter 2 – Introduction to the Visual Studio .NET IDE
Version 3.5 (Citrus) Preview
Formatting a Workbook Part 1
CSc4730/6730 Scientific Visualization
How to customize your Microsoft SharePoint Online website
Introduction to PowerPoint
Otasuke GP-EX! Chapter 2 Run State Screen.
The National Reference Metadata Editor (NRME)
Introduction to Access
Objectives At the end of this session, students will be able to:
Rational Publishing Engine RQM Multi Level Report Tutorial
SBA Lender Portal Overview
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Chapter 8 Using Document Collaboration and Integration Tools
WELCOME TO YOUR PERSONAL FINANCIAL PORTAL
Microsoft Excel 2007 – Level 2
Purchase Document Management
The National Reference Metadata Editor (NRME)
Kanban Task Manager SharePoint Editions ‒ Introduction
Presentation transcript:

Using Grafana to show Postgres Statistics By Lloyd Albin Using Grafana to show Postgres Statistics 4/7/2015

collectd The system statistics collection daemon Using Grafana to show Postgres Statistics 4/7/2015

collectd – The system statistics collection daemon collectd is a daemon which collects system performance statistics periodically and provides mechanisms to store the values in a variety of ways, for example in RRD or Whisper files. What does collectd do? collectd gathers statistics about the system it is running on and stores this information. Those statistics can then be used to find current performance bottlenecks (i.e. performance analysis) and predict future system load (i.e. capacity planning). Or if you just want pretty graphs of your private server and are fed up with some homegrown solution you're at the right place, too ;). Usually one graph says more than a thousand words, so here's a graph showing the CPU utilization of a system over the last 60 minutes: https://collectd.org/ Using Grafana to show Postgres Statistics 4/7/2015

Graphite Scalable Realtime Graphing Using Grafana to show Postgres Statistics 4/7/2015

Graphite - Scalable Realtime Graphing What Graphite is and is not Graphite does two things: Store numeric time-series data Render graphs of this data on demand What Graphite does not do is collect data for you, however there are some tools out there that know how to send data to graphite. Even though it often requires a little code, sending data to Graphite is very simple. Documentation: http://graphite.readthedocs.org/en/latest/index.html Download Page: https://launchpad.net/graphite/+download Using Grafana to show Postgres Statistics 4/7/2015

Grafana Graphite and InfluxDB Dashboard and graph composer Using Grafana to show Postgres Statistics 4/7/2015

Grafana Version 1.91 What does Grafana give me over Graphite? The ability to create templates. Single Stat Dashboards with color coding for thresholds. Pull data from more than just Graphite. InfluxDB and OpenTSDB are also supported. Combine more than one graph style. Text panels. Multi-Graph cursor. Does not give you pie charts. Limited to 2 thresholds. Edit through JSON files or GUI Interface. Understanding of Y value types such as bytes, seconds, etc. So that seconds, minutes, hours, days will show up with using seconds. Graph overrides for specific data Annotations, aka showing events. Pull data from more than one graphite server into a single display. Collapsible Sections. Using Grafana to show Postgres Statistics 4/7/2015

Grafana Version 2.0 (Currently in Beta) Nagios like notification support. User logins with settable permissions: View, Edit & Admin. Panel time override Dashboard List Panel Logarithmic Scales: Log Base 10, 32, & 1024 Built in webserver. Using Grafana to show Postgres Statistics 4/7/2015

Rich graphing Fast and flexible client side graphs with a multitude of options. Click and select region to zoom Multiple Y-Axes Bars, Lines, Points Grid thresholds Y-axis formats (bytes, milliseconds, etc) Graphite PNG render option View or edit graph in fullscreen Using Grafana to show Postgres Statistics 4/7/2015

Mixed styling Full control for how each series should be drawn Mix lines, bars and points Mix stacked series with isolated series Using Grafana to show Postgres Statistics 4/7/2015

Dashboards Drag and drop panels, change row and panel width easily. Instant dashboard search based on title or tags Templated dashboards Scripted dashboards Dashboard playlist Save / Load from ElasticSearch Save / Load from json file Using Grafana to show Postgres Statistics 4/7/2015

Graphite query editor Grafana includes a built in Graphite query parser that takes writing graphite metric expressions to a whole new level. Expressions are easier to read and faster to edit than ever. Click on any metric segment to change it Quickly add functions (search, typeahead) Click on a function parameter to change it Move function order to the left or right Direct link to Graphite function documentation Using Grafana to show Postgres Statistics 4/7/2015

InfluxDB query editor Series name and column auto complete Automatic handling of group by time Options for fill(0) and fill(null) Alias patterns for short readable series names Using Grafana to show Postgres Statistics 4/7/2015

Templated dashboards Any metric path can be replaced with a template variable. This allows you to create generic dashboards that can quickly be changed to show stats for a specific cluster, server, application or experiment. Using Grafana to show Postgres Statistics 4/7/2015

Templated queries Variables values defined with a metric key query Interval variables, like 10min, 1h, 1d Use variable in metric path Use variables in graph titles Use variable as a function parameter Using Grafana to show Postgres Statistics 4/7/2015

Annotations Annotate graphs with rich events from different data sources. Hover over events shows you the full event metadata. Fetch annotations from Elasticsearch Fetch annotations from Graphite Events and Metrics Fetch annotations from InfluxDB Using Grafana to show Postgres Statistics 4/7/2015

Dark and Light theme If you do not prefer the default dark theme you can switch to a light theme. Using Grafana to show Postgres Statistics 4/7/2015

Multiple data sources You can define multiple graphite servers or InfluxDB servers and switch between them. It is even possible to show graphs from different data sources & servers on the same dashboard. Using Grafana to show Postgres Statistics 4/7/2015

SCHARP’s Implementation Using Grafana to show Postgres Statistics 4/7/2015

Overview Section We can toggle events/annotations on/off at the top We use a quick list at the top to get to specific servers/pages. We use a cross server overview at the top of the page. Using Grafana to show Postgres Statistics 4/7/2015

Simple Dashboards Simple dashboards for Non-DBA’s to be able to know the status of the servers. The green and black backgrounds say that everything is OK. The orange background is a warning. The red background is a critical warning. You can clock on the header bar to shrink or expand the section. Deadlocks & Conflicts only happen for a split second, so these graphs show the number over the time period being shown. The rest of the graphs are showing the current value. Using Grafana to show Postgres Statistics 4/7/2015

Different Sized Graphs Here we can see different sized graphs, but all with the same scale. I have turned on shared crosshairs, this is the red vertical line which is the current location of my cursor across all graphs. Using Grafana to show Postgres Statistics 4/7/2015

Events / Annotations On this graph you can see a deadlock event. When you scroll over the white arrow you can see which event and when the event happened. You can set two threshholds. On this graph I have them set for 400 & 600. THP – Transparent Huge Pages, has anyone ever disabled them? Using Grafana to show Postgres Statistics 4/7/2015

Time Scale One of the great features of Grafana is the ability to go from seconds -> minutes -> hours -> days. Grafana supports scales for both seconds and milliseconds. Using Grafana to show Postgres Statistics 4/7/2015

Bytes Scale Grafana is also does great with the bytes scale going from bytes -> KB -> MB -> GB, etc. Using Grafana to show Postgres Statistics 4/7/2015

Graph Setup Using Grafana to show Postgres Statistics 4/7/2015

General Graph Settings Span allows you to set the width out of 12. This means in this example it is 4 out of 12. This means that you can have 3 graphs that are a width of 4 in a row. Using Grafana to show Postgres Statistics 4/7/2015

Metrics Graph Settings With timeShift(time period) you can display different times at the same time. In this example the green is shows this week and the yellow is showing last week. Using Grafana to show Postgres Statistics 4/7/2015

Axes & Grid Graph Settings Format allows you to pick none, short, bytes, bits, bps, s, ms, μs, ns, percent Set thresholds and colors. Using Grafana to show Postgres Statistics 4/7/2015

Display Styles Graph Settings By using the override, you can set last weeks to be bars, points, different line width or fill, etc. Using Grafana to show Postgres Statistics 4/7/2015

Singlestat Setup Using Grafana to show Postgres Statistics 4/7/2015

Options Singlestat Settings Value can be set to Min, Max, Avg, Total, or Current. You can also set your thresholds and their colors. Either the background or the text color can be changed. If you select your unit format of S or bytes it will automatically take care of the postfix for you. Spark line creates a graph in the background of the singlestat for the current timeperiod. Using Grafana to show Postgres Statistics 4/7/2015

Events / Annotations Using Grafana to show Postgres Statistics 4/7/2015

Annotations Add / Edit Annotations Using Grafana to show Postgres Statistics 4/7/2015

Templating Using Grafana to show Postgres Statistics 4/7/2015

Creating a template variable By adding the wildcard, it will add “All” to the list. The query allows us to point to a graphite location to get all of the names. Regex allows us to use just part of the name returned. w+ matches any word character one or more times. Using Grafana to show Postgres Statistics 4/7/2015

Using your variable(s) in a graph We used the $database variable within the query used for the graph. If you used the wildcard setting, you will most likely need to use sumSeries() or maxSeries() for when people select the “All” setting otherwise you will get one line per database instead of a combined line for all the databases. The annotation's can also use the variables. In this case the deadlock is showing on the main database, but if we switch to any other one, it will not show any deadlocks. You can also daisy chain your variables, such as have a $server variable that finds the servers and then the $database variable uses the $server variable within it’s query. Using Grafana to show Postgres Statistics 4/7/2015