Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashNephy committed Jan 31, 2023
2 parents 6ea8796 + 0897055 commit b2ceb28
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# mackerel-plugin-epgstation

A Mackerel plugin to collect EPGStation metrics

## Example Metrics

```console
$ mackerel-plugin-epgstation
epgstation.recording.recording 1 1675135687
epgstation.encode.running 0 1675135687
epgstation.encode.waiting 0 1675135687
epgstation.storages.available 65423953920 1675135687
epgstation.storages.used 3671338823680 1675135687
epgstation.storages.total 3936818806784 1675135687
epgstation.streams.live_stream 0 1675135687
epgstation.streams.live_hls 0 1675135687
epgstation.streams.recorded_stream 0 1675135687
epgstation.streams.recorded_hls 0 1675135687
epgstation.reservation.normal 751 1675135687
epgstation.reservation.skips 0 1675135687
epgstation.reservation.overlaps 82 1675135687
epgstation.reservation.conflicts 0 1675135687
```

## Usage

1. Install via mkr / or download releases directly

```console
$ mkr plugin install SlashNephy/mackerel-plugin-epgstation
```

2. Append following configuration to `mackerel-agent.conf`

```conf
[plugin.metrics.epgstation]
command = "/opt/mackerel-agent/plugins/bin/mackerel-plugin-epgstation"
```

mackerel-plugin-epgstation has some command-line options. Check the help for details.

```console
$ /opt/mackerel-agent/plugins/bin/mackerel-plugin-epgstation --help
```

0 comments on commit b2ceb28

Please sign in to comment.