SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Downloaden Sie, um offline zu lesen
Keep an eye on your
PostgreSQL clusters
Open PostgreSQL Monitoring & PostgreSQL
Workload Analyzer
Julien Rouhaud
Dalibo - www.dalibo.org
pgconf.ru 2015 - February, 6th
[ 1 / 37 ]
Monitoring ?
Service availability
Service, host, network...
Alerting
Service performance
Graphing
Trending
Analysis
At what cost ?
Open source projects
[ 2 / 37 ]
What already exists
Different kind of tools
Command line tools / datasources
Generic solutions with probes
Dedicated solutions
[ 3 / 37 ]
Command line
And data sources
Nice features
But more useful for emergency situations
Or need some external tool for best usage
[ 4 / 37 ]
Command line
Some examples
command line
pg_view
pg_activity
pgstats
Data source
all pg_stat* catalog
pg_stat_statements, pg_stat_plans
pg_proctab
[ 5 / 37 ]
Probe
Gather informations for another tool
Can sometimes be used in standalone
Some examples
check_postgres
pg_monz
[ 6 / 37 ]
Dedicated solution
Complete for its purpose
More pertinent
But not numerous
[ 7 / 37 ]
OPM and PoWA ?
OPM
aim to be a dedicated solution
relies on existing or new probes and components
PoWA
Dedicated performance solution
[ 8 / 37 ]
Ecosystem
Generic solution based on probes
Name Native graphing Alerting
Nagios No Yes
Zabbix Yes Yes
Munin Yes Yes
Cacti Yes No
[ 9 / 37 ]
General Overview
Pros
Robust and mature
Adaptable
Extendable
Cons
UI not flexible
Data not available for querying
Except check_postgres, lack of really complete
datasource
[ 10 / 37 ]
Nagios
Specific
Graphing (with third part tool like OPM V2)
PostgreSQL compatibility with
check_postgres (Bucardo)
check_pg_activity (OPM)
Hard to configure
[ 11 / 37 ]
Zabbix
Overview
PostgreSQL compatibility with
pg_monz (only PG 9.2+)
postbix (no news since 2013)
[ 12 / 37 ]
Munin
Overview
Native PostgreSQL compatibility, and with
pyMunin
[ 13 / 37 ]
Cacti
Overview
PostgreSQL compatibility with
Some workaround with check_postgres (MRTG
format)
[ 14 / 37 ]
What about OPM
And for Open PostgreSQL Monitoring ?
[ 15 / 37 ]
OPM
Architecture
Nagios
Scheduler
Alerting
Probes
PG specific : check_pgactivity
And monitoring-plugin
Storage
PostgreSQL :)
9.3 or more
GUI
Dedicated GUI
[ 16 / 37 ]
OPM
Overview
[ 17 / 37 ]
check_pgactivity
Design
Written from scratch, simpler code
Provide lots of services
Handle a small cache
Better perfdata
[ 18 / 37 ]
check_pgactivity
New features
Handle multi-database connections transparently
Can compute delta instead of raw values
Handle units
[ 19 / 37 ]
check_pgactivity
New service examples
bgwriter statistics
better bloat estimation
Most important settings check
[ 20 / 37 ]
check_pgactivity
Enhanced service
better bloat estimation
replication : pg_stat_replication or hot standby
"Instant" hit ratio
[ 21 / 37 ]
User interface
Specific ACL
More modern graphs
Custom graph display, tags. . .
[ 22 / 37 ]
Ecosystem
Specific solution
Name Maintained Aim Alerting
pg_statsinfo Yes Generalist Possible
pg_watch Dead ? Generalist No
pgObserver Yes Performance No
pgCluu Yes Generalist No
PoWA Yes Performance No
[ 23 / 37 ]
pg_statsinfo
Pros & cons
Pros
Useful metrics
Cons
Reports on demand
Needs specific C extension (reboot required) on
each monitored server
[ 24 / 37 ]
pgObserver
Pros & cons
Pros
Useful metrics
And novel metrics (like stored proc)
Dynamic reports
But
Focused on performance
[ 25 / 37 ]
pgCluu
Pros & cons
Pros
Useful metrics
General overview
Easy to use
Cons
Can be storage greedy
Need to generate reports
[ 26 / 37 ]
PoWA 2.0
A complete solution
Focused on performance
Handle a lot of datasource
Requires PG 9.4 or more
requires queryid exposure, since
pg_stat_statements 1.2
[ 27 / 37 ]
What is PoWA
PostgreSQL extension : powa-archivist
A background worker
Dedicated snapshot, aggregation and purge
functions
Dedicated UI : powa-web
[ 28 / 37 ]
PoWA
Extensions handled
Existing extensions
pg_stat_statements
pg_proctab (WIP)
New one
pg_qualstats
pg_stat_kcache
pg_track_settings (WIP)
[ 29 / 37 ]
pg_qualstats
Presentation
Gather real-time statistics on where clauses per
query
SeqScan / indexScan
Operator
Number of execution
Filter ratio
. . .
[ 30 / 37 ]
pg_qualstats
What it allows
Find missing indexes
Which could be partial
Or on several columns if some other queries could
benefit from it
. . .
[ 31 / 37 ]
pg_qualstats
What it allows
EXPLAIN normalized queries with real values
Most frequents
Most/Least filtering
. . .
[ 32 / 37 ]
pg_stat_kcache
Presentation
Gather real-time per query system statistics
[ 33 / 37 ]
pg_stat_kcache
What it allows
Compute a real hit ratio (shared_buffers, system
cache and disk)
Show CPU consumption
global, per database and/or per query and/or per
user
over time
[ 34 / 37 ]
Demo
demo-powa.dalibo.com powa // demo
demo.opm.io opm // demo
[ 35 / 37 ]
For the future
Nagios optional from OPM
Add ability to handle PoWA in OPM
Better use of metrics
Trending / statistic analysis
Correlate informations
Better index suggestion, global database analysis
And much more. . .
[ 36 / 37 ]
Questions ?
julien.rouhaud@dalibo.com
opm-users@googlegroups.com -
powa-users@googlegroups.com
github.com/OPMDG - github.com/dalibo/powa
Thank you !
[ 37 / 37 ]

Weitere ähnliche Inhalte

Ähnlich wie [pgconf.ru 2015] OPM and PoWA: Keep an eye on your PostgreSQL clusters

DBPLUS Performance Monitor for PostgeSQL
DBPLUS Performance Monitor for PostgeSQL DBPLUS Performance Monitor for PostgeSQL
DBPLUS Performance Monitor for PostgeSQL
DBPLUS
 

Ähnlich wie [pgconf.ru 2015] OPM and PoWA: Keep an eye on your PostgreSQL clusters (20)

PGConf.ASIA 2019 Bali - Performance Analysis at Full Power - Julien Rouhaud
PGConf.ASIA 2019 Bali - Performance Analysis at Full Power - Julien RouhaudPGConf.ASIA 2019 Bali - Performance Analysis at Full Power - Julien Rouhaud
PGConf.ASIA 2019 Bali - Performance Analysis at Full Power - Julien Rouhaud
 
DBPLUS Performance Monitor for PostgeSQL
DBPLUS Performance Monitor for PostgeSQL DBPLUS Performance Monitor for PostgeSQL
DBPLUS Performance Monitor for PostgeSQL
 
Graphite & Metrictank - Meetup Tel Aviv Yafo
Graphite & Metrictank - Meetup Tel Aviv YafoGraphite & Metrictank - Meetup Tel Aviv Yafo
Graphite & Metrictank - Meetup Tel Aviv Yafo
 
OSMC 2008 | PostgreSQL Monitoring - Introduction, Internals And Monitoring S...
OSMC 2008 |  PostgreSQL Monitoring - Introduction, Internals And Monitoring S...OSMC 2008 |  PostgreSQL Monitoring - Introduction, Internals And Monitoring S...
OSMC 2008 | PostgreSQL Monitoring - Introduction, Internals And Monitoring S...
 
Linaro Connect 2016 (BKK16) - Introduction to LISA
Linaro Connect 2016 (BKK16) - Introduction to LISALinaro Connect 2016 (BKK16) - Introduction to LISA
Linaro Connect 2016 (BKK16) - Introduction to LISA
 
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
 
Monitoring pg with_graphite_grafana
Monitoring pg with_graphite_grafanaMonitoring pg with_graphite_grafana
Monitoring pg with_graphite_grafana
 
PCP
PCPPCP
PCP
 
PL-4047, Big Data Workload Analysis Using SWAT and Ipython Notebooks, by Moni...
PL-4047, Big Data Workload Analysis Using SWAT and Ipython Notebooks, by Moni...PL-4047, Big Data Workload Analysis Using SWAT and Ipython Notebooks, by Moni...
PL-4047, Big Data Workload Analysis Using SWAT and Ipython Notebooks, by Moni...
 
Prestogres internals
Prestogres internalsPrestogres internals
Prestogres internals
 
Performance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDBPerformance Tuning Cheat Sheet for MongoDB
Performance Tuning Cheat Sheet for MongoDB
 
Making Postgres Central in Your Data Center
Making Postgres Central in Your Data CenterMaking Postgres Central in Your Data Center
Making Postgres Central in Your Data Center
 
Monitoring federation open stack infrastructure
Monitoring federation open stack infrastructureMonitoring federation open stack infrastructure
Monitoring federation open stack infrastructure
 
GPGPU Accelerates PostgreSQL (English)
GPGPU Accelerates PostgreSQL (English)GPGPU Accelerates PostgreSQL (English)
GPGPU Accelerates PostgreSQL (English)
 
[Serverless OpenHack Tokyo] Azure Serverless (English)
[Serverless OpenHack Tokyo] Azure Serverless (English)[Serverless OpenHack Tokyo] Azure Serverless (English)
[Serverless OpenHack Tokyo] Azure Serverless (English)
 
Postgres Toolkit
Postgres ToolkitPostgres Toolkit
Postgres Toolkit
 
sudoers: Benchmarking Hadoop with ALOJA
sudoers: Benchmarking Hadoop with ALOJAsudoers: Benchmarking Hadoop with ALOJA
sudoers: Benchmarking Hadoop with ALOJA
 
Islamabad PUG - 7th Meetup - performance tuning
Islamabad PUG - 7th Meetup - performance tuningIslamabad PUG - 7th Meetup - performance tuning
Islamabad PUG - 7th Meetup - performance tuning
 
Islamabad PUG - 7th meetup - performance tuning
Islamabad PUG - 7th meetup - performance tuningIslamabad PUG - 7th meetup - performance tuning
Islamabad PUG - 7th meetup - performance tuning
 
Spring batch overivew
Spring batch overivewSpring batch overivew
Spring batch overivew
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

[pgconf.ru 2015] OPM and PoWA: Keep an eye on your PostgreSQL clusters