Is their any way to see the size of a confluence space, number of attachments etc.
Easiest way that I know of is to use direct SQL queries against the database.
1) Install the SQL and Cache plugins for Confluence2) Install the macro-security plugin for confluence and restrict SQL to admins only3) Configure a datasource in your <install>/conf/server/.xml config file with a read-only user that has access to the confluence database.4) Create a wiki page and add the markup to query and render the results directly in the wiki page:
{cache}{sql:dataSource=confluenceread|output=wiki}select count(distinct CONTENT.title) as "Pages", SPACES.spacename as "Space", SPACES.spacekey as "Key" from CONTENT, SPACES where CONTENT.spaceid IS NOT NULL and CONTENT.spaceid = SPACES.spaceid group by CONTENT.spaceid order by Pages DESC{sql}{cache}
{chart:title=Confluence Content|type=pie|displayData=true|width=500|height=300|dataOrientation=vertical|pieSectionLabel=%0% - %1%|legend=false|tables=content | attachment=^Confluence Content.png | attachmentVersion=replace} {sql:dataSource=confluenceread|id=content}select contenttype as Type, count(distinct CONTENT.title) as "Count" from CONTENT group by contenttype having Count > 0unionselect contenttype as Type, count(*) as "Count" from CONTENT where contenttype='COMMENT' group by contenttype having Count > 0unionselect "ATTACHMENTS" as Type, count(distinct title) as "Count" from ATTACHMENTS having Count > 0order by Count DESC{sql}{chart}
It looks like you're new here. Sign in or register to get started.