mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
feat: add promethus
This commit is contained in:
29
README.md
29
README.md
@@ -21,22 +21,27 @@ func main() {
|
||||
|
||||
```
|
||||
|
||||
## with sqlite
|
||||
|
||||
```shell
|
||||
go build -tags sqlite -o monibuca_sqlite
|
||||
./monibuca_sqlite -c config.yaml
|
||||
```
|
||||
|
||||
## More Example
|
||||
|
||||
see example directory
|
||||
|
||||
# Prometheus
|
||||
|
||||
```yaml
|
||||
scrape_configs:
|
||||
- job_name: "monibuca"
|
||||
metrics_path: "/api/metrics"
|
||||
static_configs:
|
||||
- targets: ["localhost:8080"]
|
||||
```
|
||||
|
||||
# Create Plugin
|
||||
|
||||
```go
|
||||
|
||||
import (
|
||||
"m7s.live/m7s/v5"
|
||||
)
|
||||
|
||||
type MyPlugin struct {
|
||||
m7s.Plugin
|
||||
}
|
||||
|
||||
var _ = m7s.InstallPlugin[MyPlugin]()
|
||||
```
|
||||
see [plugin](./plugin/README.md)
|
||||
Reference in New Issue
Block a user