Performance Monitor Subtitle for PostgreSQL · DBPLUS Performance Monitor for PostgreSQL 2. System...

Post on 07-Jan-2020

25 views 0 download

Transcript of Performance Monitor Subtitle for PostgreSQL · DBPLUS Performance Monitor for PostgreSQL 2. System...

dbplus.tech

Subtitle Performance Monitor

for PostgreSQL

Agenda

1. Solution Architecture2. Add the instance to monitoring3. Main functionalities4. Access management – Security module5. Anomaly Monitor6. Working with the application

DBPLUS Performance Monitor for PostgreSQL 2

System architecture

DBPLUS Performance Monitor for PostgreSQL 3

A set of SQL procedures responsible for collecting

information about the performance of monitored PostgreSQL Instances

Web application based on IIS technology

Connect the instance to monitoring

In the main system configurator window (Configuration Wizard)click [Add Another instance] button.

DBPLUS Performance Monitor for PostgreSQL 4

Connect the instance to monitoring

Complete fields to add PostgreSQL instance to monitoring process:

Connection name (default)

Host name

TCP Port – port number

Default Database

To create a monitoring user is required to provide user data with administrator rights.

They are given only here and not saved anywhere.

DBPLUS Performance Monitor for PostgreSQL 5

Connect the instance to monitoring

DBPLUS Performance Monitor for PostgreSQL 6

In the next step, choose one of the options:

Create new login/user

Use existing login

Connect the database to monitoring

Summary of wizard configuration process – add PostgreSQL instance to monitoringTo complete the operation click [Finish] button.

DBPLUS Performance Monitor for PostgreSQL 7

Main functionalities – Table options

It is possible to export data to a CSV file

DBPLUS Performance Monitor for PostgreSQL 8

Sorting ang Formatting columns in tables:

Unit selection - e.g. Elapsed Time in seconds, minutes, days, etc.,

selection of a shortcut for large numbers - e.g. kilo, Mega, ...

determination of decimal place accuracy of a number

Main functionalities – Table options

The [+] button is presented in the Query Hash column

Allows to fast view sql details (SQL Details) or

Add to query indefiners list to later analysis

DBPLUS Performance Monitor for PostgreSQL 9

Main functionalities – Chart options

Zoom in the selected area on the chart

DBPLUS Performance Monitor for PostgreSQL 10

Option to return to the previous view via [Reset zoom]

Main functionalities – Chart options

Different types of charts: Line Area Column

It is possible to mark and unmark the presented series on the chart

Display information in a Tooltipafter indicate the location on the chart.

The chart can be exported to a file in the PNG, JPEG, PDF, SVGformats.

DBPLUS Performance Monitor for PostgreSQL 11

Dashboard – Home screen

Three ways to present PostgreSQL instance:

Icons view

DBPLUS Performance Monitor PostgreSQLfor 12

Dashboard – Home screen

Three ways to present PostgreSQL instance:

Grid view

DBPLUS Performance Monitor PostgreSQLfor 13

Television view

Instance Load – Instance details

The chart presents information about the basic databasestatistics:

Elapsed Time Wait Time Wait IO Time Lock Time IO read time IO write time Alerts

DBPLUS Performance Monitor PostgreSQLfor 14

Instance Load – Instance details

DBPLUS Performance Monitor PostgreSQLfor 15

After click on the point on the chart, information are presented: Top queries in a given

snap, Queries statistics, Content and the query

plan.

The DBPLUS application for all top queries generates a query plan by executing the Explain command in the given snap.

After click the point on the chart there are information about:

The level of individual waits

DBPLUS Performance Monitor PostgreSQLfor 16

Instance Load – Instance details

Waits Overview

The graph shows the total wait time for all sessions in the instance in a selected period.

The graph on the left shows the sum of wait times for the selected period.

The graph on the right shows the top waits for the indicated point on the chart(snap).

DBPLUS Performance Monitor PostgreSQLfor 17

Waits Analyze

As part of a detailed analysis, waits can sort by:

Wait type Wait class Affecting performance

DBPLUS Performance Monitor PostgreSQLfor 18

Waits Analyze

Data presented in the chart are visible in the table form.

DBPLUS Performance Monitor PostgreSQLfor 19

SQL Analyze

The graph shows the query time (Elapsed Time). Impactassessment of individual queries on all instances is possible.

After select queries below the graph, user get information about their participation in the overall Instance utilisation.

DBPLUS Performance Monitor PostgreSQLfor 20

SQL Details

Contains detailed performance statistics for each query.

Data are presented for the indicated period of time with the possibility of group by:

Snap (15 minutes)

Hour

Day

Month

The ability to display Online data – current download from the system view.

DBPLUS Performance Monitor PostgreSQLfor 21

It is possible to compare the plans used by a given query over period of time.

SQL Details

Easy access to the(Explain plan).

It is possible to view sample parameters which the query is performed with.

DBPLUS Performance Monitor for PostgreSQL 22

SQL Details

The ability to generate an execution plan for any parameters provided by the user.

Substitution of sample call parameters for a query.

DBPLUS Performance Monitor PostgreSQLfor 23

SQL Details

The query statistics can be viewed in a graph by click on a given column in the table.

Instance load for…- the option to estimate the impact a given query in relation to the statistics for the entire database.

DBPLUS Performance Monitor PostgreSQLfor 24

Show Plan Objects

Page contains information about:

Query content Query plan Query objects: Views

Indices

Tabels

Object details

DBPLUS Performance Monitor PostgreSQLfor 25

SQL Details (cont.)

It is also possible to search queries using Find SQL

The user can search by: Typing a text fragment Queries changing plan New queries in a given period

DBPLUS Performance Monitor PostgreSQLfor 26

Load trends

Allows to get information about trends that take place in the database for the indicated statistics.

Data are presented for the indicated period of time and it can be grouped by: Snap (15 minutes) Hour Day Month

DBPLUS Performance Monitor PostgreSQLfor 27

Compare trends

Allows to compare statistics.

Compare data collected for a specific day -Compare Days tab or time period - Compare Periods tab.

DBPLUS Performance Monitor PostgreSQLfor 28

Top SQL/SQL 3D

It presents information about the most demanding queries that have the largest share in a given statistic.

Options: Elapsed Time Executions Rows processed Blks hit Blks read Blks dirtied Temp blks read Temp blks written Blk read time Blk write time

DBPLUS Performance Monitor PostgreSQLfor 29

Top Day

Allows to display top queries for Elapsed Time and follow their behaviour changes.

DBPLUS Performance Monitor PostgreSQLfor 30

Slow SQL’s

Presents queries that lasted for more than 200 seconds for a given period (default value).

DBPLUS Performance Monitor PostgreSQLfor 31

I/O Stats

The module is used to analyse I/O performance.

Available information: Number of reads Number of writes Duration of the read Read data block

The ability to verify data for the entire PostgreSQL instance as well as a particular database.

DBPLUS Performance Monitor PostgreSQLfor 32

I/O Stats

It is possible to compare data collected for a givenday (Days Compare) as well as for the period(Period Compare).

DBPLUS Performance Monitor PostgreSQLfor 33

Space Monitor

Allows to analyse the current occupancy disk space by: Instancje PostgreSQL Databases

It also contains historical data that stores information about the occupancy of PostgreSQL databases.

DBPLUS Performance Monitor for PostgreSQL 34

Background Writer

It presents the information available in the pg_stat_bgwriter view.

This view contains information about the background writer and checkpointer processes in PostgreSQL.

DBPLUS Performance Monitor PostgreSQLfor 35

Sessions

This page stores information about sessions in a database,displayed according to the criteria in the filters.

Sessions – contains information about current sessions in the instance.Session with transactions– the function allows to analyze the session on how to make entries in the Log.Session history - presents the number of sessions and active sessions in the selected period.

DBPLUS Performance Monitor PostgreSQLfor 36

Sessions history

The table is divided into twogroups:

Yellow shows information about active sessions.

Red shows information about sessions that save into the Log.

DBPLUS Performance Monitor PostgreSQLfor 37

Sessions history

Information about session can be sorted by use: Wait type Query ID User Name Pid – session ID Application name

DBPLUS Performance Monitor PostgreSQLfor 38

Information can be viewed in the form of a graph.

Locks

Contains information about locks that take place in a given instance.

Online Locks– allows for current locks analysis in an instance or a specific database

Locks history – allows to track locks in time

Online Locked Objects - shows a list of objects on which locks are currently installed

DBPLUS Performance Monitor PostgreSQLfor 39

Locks

After select blocking/ blocked session, there are information about: Query content Session parameters Transaction type Status Wait type Start time query

DBPLUS Performance Monitor PostgreSQLfor 40

Parameters

Allows to view and report history of the change the PostgreSQL instance parameters.

The window presents the current status of parameters and their changes over time.

DBPLUS Performance Monitor PostgreSQLfor 41

Access management

DBPLUS Performance Monitor PostgreSQLfor 42

The ability to give access to individual instances and screens in the application.Access settings for: USER

(Object name: DOMENA\USER) GROUP: Local (Object name: Group name)

Domain (Object name: DOMENA\USER)

PROFILE(Object name: PROFIL NAME).

The ability to configure permissions: own (use Own permissions) inherited (Inherited permissions).

Access management

DBPLUS Performance Monitor PostgreSQLfor 43

Own permissions (Use own permissions).

This type of permission can be granted for each of the three objects(USER, GROUP, PROFILE).

Permissions are assigned to individual functions (Function rights).

Permissions for individual databases (Database access).

Local privillages (Local privillages).

Access management

DBPLUS Performance Monitor PostgreSQLfor 44

Inherited permissions(use Inherited permissions from parents).

This type of permission can be granted for each of the three objects(USER,GROUP,POFILE).

When permissions are granted, always point PROFILE where permissions previously have been defined.

Access management

DBPLUS Performance Monitor PostgreSQLfor 45

Access management is set on two levels:

DBPLUS Configuration Wizard: Applications settings >Application Options > Configure

DBPLUS Performance Monitor: Configuration > Settings > Parameter SECURITY

Anomaly Monitor

This module contains information about problems that affect database performance.

Information is avaiable from the level of the monitored SQL instance

Two types of Alerting: Online Trends

DBPLUS Performance Monitor PostgreSQLfor 46

Anomaly Monitor

Grouped by the creationreasons and their impact on the given statistics in a database.

Presented in detail for a given period of time.

DBPLUS Performance Monitor PostgreSQLfor 47

InstanceLoad

Information about Alerts is also visible on the chart on the Instance Load tab.

DBPLUS Performance Monitor PostgreSQLfor 48

Sample Alert that inform about achange of the execution plan:

Anomaly Monitor – Configuration

DBPLUS Performance Monitor PostgreSQLfor 49

Configuration and alert definitions are available in the menu:Configuration > Alert settings

Set the mailbox

Anomaly Monitor – Configuration

DBPLUS Performance Monitor PostgreSQLfor 50

General settingsContain parameter configurations that control the operation of the alert module.

Anomaly Monitor – How does it work?

DBPLUS Performance Monitor PostgreSQLfor 51

The Anomaly Monitor is based on gathering information about statistics in the instance.

Alert definitions– a threshold alarm value is defined for each statistic.

Problem definition– a set of rules based on predefined Alerts.

Based on historical information, threshold exceeding events are generated.

Anomaly Monitor – How does it work?

DBPLUS Performance Monitor PostgreSQLfor 52

The alert definition is based on:

Selection of Alert type : Online I/O Stats Load Trends SQL Query

Anomaly Monitor – How does it work?

DBPLUS Performance Monitor PostgreSQLfor 53

The alert definition is based on:

Determining the alarm threshold value: WARNING/CRITICAL

Anomaly Monitor – How does it work?

DBPLUS Performance Monitor PostgreSQLfor 54

The alert definition is based on:

Setting additional conditions: Value below which the alert does not

appear Value above which the alert will

always occur What impact the query generates

(only SQL Query)

Anomaly Monitor – How does it work?

DBPLUS Performance Monitor PostgreSQLfor 55

To define the problem, indicate the cause of the problem. It can be determined by configure rule that consist of predefined alert definitions. To configure: the name of the problem Determine the class of the

problem

Anomaly Monitor – problem definitions

DBPLUS Performance Monitor PostgreSQLfor 56

The next step of configuration: Set up a set of rules based on the

Alert definition

dbplus.tech

Subtitle Thank you!www.dbplus.tech