[{"data":1,"prerenderedAt":324},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2011\u002F10\u002F11\u002Fpostgres-monitoring-with-munin-1-4-and-multiple-databases\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":311,"date":312,"description":213,"embedImage":311,"extension":313,"image":311,"intro":311,"meta":314,"navigation":315,"path":316,"seo":317,"series":311,"sitemap":318,"stem":319,"tags":320,"__hash__":323},"content\u002F2011\u002F10\u002F11\u002Fpostgres-monitoring-with-munin-1-4-and-multiple-databases.md","Postgres monitoring with munin 1.4 and multiple databases",{"type":208,"value":209,"toc":308},"minimark",[210,214,222,225,228,281,284,298,301,304],[211,212,213],"p",{},"In munin 1.4 the number of plugins for postgres has increased. They are all based on the same perl module - Munin::Plugin::Pgsql",[211,215,216,217,221],{},"Many of them allow for suffixing the database name to the symlink in ",[218,219,220],"code",{},"\u002Fetc\u002Fmunin\u002Fplugins\u002F"," to run against a given db or to suffix ALL to run against all (this is standard munin behaviour - see the plugins that have a filename ending in _).",[211,223,224],{},"If you enable several databases on the same plugin - it does a lot of stuff to be specific but it wasn't changing the plugin title so all the graphs generated got the same title. Hard to know which db is which.",[211,226,227],{},"I found that if I insert this line",[229,230,235],"pre",{"className":231,"code":232,"language":233,"meta":234,"style":234},"language-perl shiki shiki-themes github-dark","$pg->{title} = $pg->{title} . \" \" . $pg->wildcard_parameter();\n","perl","",[218,236,237],{"__ignoreMap":234},[238,239,242,246,250,253,257,260,262,264,266,269,273,276,278],"span",{"class":240,"line":241},"line",1,[238,243,245],{"class":244},"s95oV","$pg",[238,247,249],{"class":248},"snl16","->",[238,251,252],{"class":244},"{",[238,254,256],{"class":255},"sDLfK","title",[238,258,259],{"class":244},"} = $pg",[238,261,249],{"class":248},[238,263,252],{"class":244},[238,265,256],{"class":255},[238,267,268],{"class":244},"} . ",[238,270,272],{"class":271},"sU2Wk","\" \"",[238,274,275],{"class":244}," . $pg",[238,277,249],{"class":248},[238,279,280],{"class":244},"wildcard_parameter();\n",[211,282,283],{},"just before the call to",[229,285,287],{"className":231,"code":286,"language":233,"meta":234,"style":234},"$pg->Process();\n",[218,288,289],{"__ignoreMap":234},[238,290,291,293,295],{"class":240,"line":241},[238,292,245],{"class":244},[238,294,249],{"class":248},[238,296,297],{"class":244},"Process();\n",[211,299,300],{},"then I get unique titles.",[211,302,303],{},"Not sure if this is handled in later versions (I am running this via the lenny-backports apt repo).",[305,306,307],"style",{},"html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":234,"searchDepth":309,"depth":309,"links":310},2,[],null,"2011-10-11 11:26:59 +0200","md",{},true,"\u002F2011\u002F10\u002F11\u002Fpostgres-monitoring-with-munin-1-4-and-multiple-databases",{"title":206,"description":213},{"loc":316},"2011\u002F10\u002F11\u002Fpostgres-monitoring-with-munin-1-4-and-multiple-databases",[321,322],"munin","postgresql","W6cPN-NGEJ2CUwEcyVBYSRG-TppCvyqX-vRT7ZP6G_M",1775293013504]