Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Icinga graphite templates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Icinga graphite templates
Commits
d4151265
Commit
d4151265
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add 3 pgsql output templates
parent
7f37e02c
Branches
Branches containing commit
No related tags found
1 merge request
!3
add 3 pgsql output templates
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
iml_psql-activity.ini
+42
-0
42 additions, 0 deletions
iml_psql-activity.ini
iml_psql-conflicts.ini
+43
-0
43 additions, 0 deletions
iml_psql-conflicts.ini
iml_psql-dbrows.ini
+69
-0
69 additions, 0 deletions
iml_psql-dbrows.ini
with
154 additions
and
0 deletions
iml_psql-activity.ini
0 → 100644
+
42
−
0
View file @
d4151265
; ======================================================================
;
; PSQLSERVER activity
;
; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserveractivity.graph]
check_command
=
"Postgres-activity"
; running-total=11;; running-active=1;; running-idle=5;; running-fastpath=0;; running-other=5;;
[psqlserveractivity.urlparams]
areaAlpha
=
"0.2"
areaMode
=
"stacked"
colorList
=
"aaaaaa,dddddd,99aacc,6699aa"
; ^ ^ ^ ^
; other idle fast active
lineWidth
=
"2"
min
=
"0"
yUnitSystem
=
"binary"
[psqlserveractivity.metrics_filters]
other
=
"$service_name_template$.perfdata.running-other.value"
idle
=
"$service_name_template$.perfdata.running-idle.value"
fast
=
"$service_name_template$.perfdata.running-fastpath.value"
active
=
"$service_name_template$.perfdata.running-active.value"
; total = "$service_name_template$.perfdata.running-total.value"
[psqlserveractivity.functions]
other
=
"alias($metric$, 'Other')"
idle
=
"alias($metric$, 'Idle incl. idle in transaction')"
fast
=
"alias($metric$, 'Fastpath function call')"
active
=
"alias($metric$, 'Active (values are stacked)')"
This diff is collapsed.
Click to expand it.
iml_psql-conflicts.ini
0 → 100644
+
43
−
0
View file @
d4151265
; ======================================================================
;
; PSQLSERVER conflicts
;
; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserverconflicts.graph]
check_command
=
"Postgres-conflicts"
; confltablespace=0;; confllock=0;; conflsnapshot=0;; conflbufferpin=0;; confldeadlock=0;;
[psqlserverconflicts.urlparams]
areaAlpha
=
"0.2"
areaMode
=
"first"
colorList
=
"aaaadd,dd8888,66cc88,6699aa,ff0000"
; ^ ^ ^ ^ ^
; tables lock snaps buffer deadlock
lineWidth
=
"2"
min
=
"0"
yUnitSystem
=
"binary"
[psqlserverconflicts.metrics_filters]
tablespace
=
"$service_name_template$.perfdata.confltablespace.value"
lock
=
"$service_name_template$.perfdata.confllock.value"
snapshot
=
"$service_name_template$.perfdata.conflsnapshot.value"
bufferpin
=
"$service_name_template$.perfdata.conflbufferpin.value"
deadlock
=
"$service_name_template$.perfdata.confldeadlock.value"
[psqlserverconflicts.functions]
tablespace
=
"alias($metric$, 'tablespace - queries that have been canceled due to dropped tablespaces')"
lock
=
"alias($metric$, 'lock - queries that have been canceled due to lock timeouts')"
snapshot
=
"alias($metric$, 'snapshot - queries that have been canceled due to old snapshots')"
bufferpin
=
"alias($metric$, 'bufferpin - queries that have been canceled due to pinned buffers')"
deadlock
=
"alias($metric$, 'deadlock - queries that have been canceled due to deadlocks')"
This diff is collapsed.
Click to expand it.
iml_psql-dbrows.ini
0 → 100644
+
69
−
0
View file @
d4151265
; ======================================================================
;
; PSQLSERVER activity
;
; ----------------------------------------------------------------------
; 2023-06-08 <axel.hahn@unibe.ch> initial version
; ======================================================================
; ----------------------------------------------------------------------
; graph
; ----------------------------------------------------------------------
[psqlserverdbrows.graph]
check_command
=
"Postgres-dbrows"
; tupreturned=3689;; tupfetched=3415;; tupinserted=0;; tupupdated=0;; tupdeleted=0;;
[psqlserverdbrows.urlparams]
areaAlpha
=
"0.2"
areaMode
=
"all"
colorList
=
"cccccc,6699aa,88dd88,aaaadd,ffaaaa,6699aa,ffaaaa"
; ^ ^ ^ ^
; return fetch insert update deleted
lineWidth
=
"2"
min
=
"0"
yUnitSystem
=
"binary"
yUnitSystem
=
"binary"
title
=
Read per sec
[psqlserverdbrows.metrics_filters]
returned
=
"$service_name_template$.perfdata.tupreturned.value"
fetched
=
"$service_name_template$.perfdata.tupfetched.value"
; inserted = "$service_name_template$.perfdata.tupinserted.value"
; updated = "$service_name_template$.perfdata.tupupdated.value"
; deleted = "$service_name_template$.perfdata.tupdeleted.value"
[psqlserverdbrows.functions]
returned
=
"alias($metric$, 'Returned rows (total)')"
fetched
=
"alias($metric$, 'Fetched - rows fetched by index scans')"
; inserted = "alias($metric$, 'inserted')"
; updated = "alias($metric$, 'updated')"
; deleted = "alias($metric$, 'deleted')"
; ----------------------------------------------------------------------
[psqlserverdbrows2.urlparams]
areaAlpha
=
"0.2"
areaMode
=
"all"
colorList
=
"88cc88,aaaadd,ffaaaa,6699aa,ffaaaa"
; ^ ^ ^ ^
; insert update deleted
lineWidth
=
"2"
min
=
"0"
yUnitSystem
=
"binary"
title
=
Modifications per sec
[psqlserverdbrows2.metrics_filters]
inserted
=
"$service_name_template$.perfdata.tupinserted.value"
updated
=
"$service_name_template$.perfdata.tupupdated.value"
deleted
=
"$service_name_template$.perfdata.tupdeleted.value"
[psqlserverdbrows2.functions]
inserted
=
"alias($metric$, 'inserted')"
updated
=
"alias($metric$, 'updated')"
deleted
=
"alias($metric$, 'deleted')"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment