{"id":25791151,"url":"https://github.com/performancecopilot/pcp2pdf","last_synced_at":"2025-08-13T06:06:50.472Z","repository":{"id":27208648,"uuid":"30679492","full_name":"performancecopilot/pcp2pdf","owner":"performancecopilot","description":"Creates a PDF report out of PCP archive files collected via pmlogger","archived":false,"fork":false,"pushed_at":"2021-08-05T16:40:13.000Z","size":530,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-30T15:01:53.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/performancecopilot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-12T01:36:25.000Z","updated_at":"2024-09-28T00:57:29.000Z","dependencies_parsed_at":"2022-09-01T02:51:33.088Z","dependency_job_id":null,"html_url":"https://github.com/performancecopilot/pcp2pdf","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/performancecopilot/pcp2pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/performancecopilot%2Fpcp2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/performancecopilot%2Fpcp2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/performancecopilot%2Fpcp2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/performancecopilot%2Fpcp2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/performancecopilot","download_url":"https://codeload.github.com/performancecopilot/pcp2pdf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/performancecopilot%2Fpcp2pdf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268636320,"owners_count":24282075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-27T12:54:46.690Z","updated_at":"2025-08-13T06:06:50.422Z","avatar_url":"https://github.com/performancecopilot.png","language":"Python","readme":"This document gives an introduction to `pcp2pdf`\n\nWhat is pcp2pdf for?\n====================\n\nThe main goal of pcp2pdf is to create a visually pleasing report of a\n[Performance Co-Pilot](http://pcp.io) archive file. PCP archive files\ncontain a bunch of metrics of a system and are usually created by the\npmlogger service, which is part of `Performance Co-Pilot`.\n\nPrerequisites\n=============\n\npcp2pdf is a python program and makes use of these 3rd party modules:\n\n-   [matplotlib](http://matplotlib.org/users/installing.html)\n-   [reportlab](http://www.reportlab.com/opensource/)\n\nInstallation\n============\n\nIf you're using Fedora, you can use the packages found [mbaldessari/pcp2pdf](https://copr.fedoraproject.org/coprs/mbaldessari/pcp2pdf/)\nCOPR repo. Just launch:\n\n    dnf copr enable mbaldessari/pcp2pdf\n    dnf install pcp2pdf\n\nOtherwise just use the following:\n\n    python3 ./setup.py install\n    pcp2pdf --help\n\nUsage examples\n==============\n\nFor example if we have a PCP archive and we would like to understand how\nthe performance metrics behaved during the time interval from \"Fri Oct\n10 22:10\" to \"Sat Oct 11 01:00\", and we would also like to see the\nfollowing:\n\n-   How the eth0 TX patch behaved in correlation to the TCP statistics\n-   How the eth0 RX and TX behaved\n-   A label on the graph at 23:00 on Friday when users told us things\n    are \"slow\"\n-   Lower DPI quality (75)\n\nFor example:\n\n    pcp2pdf -S \"Fri Oct 10 22:10:12.362 2014\" -T \"Sat Oct 11 01:00:00.00 2014\" --dpi 75 \\\n        -t \"14 minute\" -c \"traffic:network.interface.out.bytes:eth0,network.tcp..*:.*\" \\\n        -c \"in_out:network.interface.out.bytes:eth0,network.interface.in.bytes:eth0\" \\\n        -l 'slow:2014-10-10 23:00:00' -a pcparchivedir/20141010\n\n![image](docs/pcp2pdf-screenshot-1.png)\n\nHere is a sample pdf [report](http://acksyn.org/software/pcp2pdf/output.pdf)\n\nCaveats\n=======\n\nBy default pcp2pdf uses a DPI value of 200. While this gives\nhigh-quality looking graphs it takes quite a bit of memory and CPU time.\nIt is possible to reduce both RAM and CPU usage by setting a smaller DPI\nvalue in `pcp2pdf.conf` or with the `--dpi` switch.\n\nNote that `pcp2pdf` is SMP aware and will use all the CPUs to render\nthe graphs.\n\nBugs\n====\n\nFeel free to report any issues\n[here](https://github.com/performancecopilot/pcp2pdf/issues)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperformancecopilot%2Fpcp2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperformancecopilot%2Fpcp2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperformancecopilot%2Fpcp2pdf/lists"}