https://github.com/percona-lab/plg
Recording and replaying exporters
https://github.com/percona-lab/plg
Last synced: 11 months ago
JSON representation
Recording and replaying exporters
- Host: GitHub
- URL: https://github.com/percona-lab/plg
- Owner: Percona-Lab
- Created: 2020-10-19T15:55:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-19T16:30:19.000Z (over 5 years ago)
- Last Synced: 2024-04-17T15:11:12.753Z (almost 2 years ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PLG
```
$ ./plg --help
Usage of ./plg:
-config string
configuration file (default "config.json")
-type string
record|serve
```
The configuration file:
```
{
"exporters": [
{
"url": "http://192.168.1.172:42000/metrics?collect%5B%5D=custom_query.hr&collect%5B%5D=global_status&collect%5B%5D=info_schema.innodb_metrics&collect%5B%5D=standard.go&collect%5B%5D=standard.process",
"username": "pmm",
"password": "/agent_id/964cac3c-d3f7-4d93-839f-3cb4a2a22f7d",
"duration": 5,
"name": "mysql_hr_5s"
},
...
```
| Option Name | Description |
|---|---|
| URL | Addres of the exporter. For record the whole URL will be used. For serving, the only the `path` part will be used. |
| Username | Username for recording |
| Password | Password for recording |
| Duration | Scrape interval |
| Name | Where to store the output |
```
...
"time": 20,
"bind": "localhost:8082"
}
```
| Option Name | Description |
|---|---|
| Time | How long exporters should be scrapped |
| Bind | Where to listen (serve action only) |