{"id":22870956,"url":"https://github.com/percona-lab/plg","last_synced_at":"2025-03-31T11:27:12.194Z","repository":{"id":68884121,"uuid":"305437332","full_name":"Percona-Lab/PLG","owner":"Percona-Lab","description":"Recording and replaying exporters","archived":false,"fork":false,"pushed_at":"2020-10-19T16:30:19.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-17T15:11:12.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Percona-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-19T15:55:40.000Z","updated_at":"2024-06-19T07:42:01.188Z","dependencies_parsed_at":"2023-03-01T11:00:34.693Z","dependency_job_id":null,"html_url":"https://github.com/Percona-Lab/PLG","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2FPLG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2FPLG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2FPLG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2FPLG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Percona-Lab","download_url":"https://codeload.github.com/Percona-Lab/PLG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246460572,"owners_count":20781153,"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","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":"2024-12-13T13:16:40.854Z","updated_at":"2025-03-31T11:27:12.167Z","avatar_url":"https://github.com/Percona-Lab.png","language":"Go","readme":"# PLG\n\n```\n$ ./plg --help\nUsage of ./plg:\n  -config string\n    \tconfiguration file (default \"config.json\")\n  -type string\n    \trecord|serve\n```\n\nThe configuration file:\n\n```\n{\n    \"exporters\": [\n        {\n            \"url\": \"http://192.168.1.172:42000/metrics?collect%5B%5D=custom_query.hr\u0026collect%5B%5D=global_status\u0026collect%5B%5D=info_schema.innodb_metrics\u0026collect%5B%5D=standard.go\u0026collect%5B%5D=standard.process\",\n            \"username\": \"pmm\", \n            \"password\": \"/agent_id/964cac3c-d3f7-4d93-839f-3cb4a2a22f7d\",\n            \"duration\": 5,\n            \"name\": \"mysql_hr_5s\"\n        },\n        ...\n```\n\n| Option Name  | Description  |\n|---|---|\n| URL  | Addres of the exporter. For record the whole URL will be used. For serving, the only the `path` part will be used.  |\n|  Username | Username for recording  |\n|  Password |  Password for recording  |\n|  Duration | Scrape interval |\n|  Name     | Where to store the output |\n\n```\n...\n    \"time\": 20,\n    \"bind\": \"localhost:8082\"\n}\n```\n\n| Option Name  | Description  |\n|---|---|\n| Time  | How long exporters should be scrapped  |\n| Bind  | Where to listen (serve action only)  |","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fplg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercona-lab%2Fplg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fplg/lists"}