Skip to content

Commit

Permalink
added small info in README, moved config
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ome committed Oct 19, 2024
1 parent da0f5a8 commit 0efce9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Usage of magnify:
yaml file config path (default "config.yaml")
```

## Docker usage
```bash
docker run -v ./config.yaml:/config.yaml -d w1n2k/magnify:1.0.0
```

## Example configuration
Please look at [Expr](https://expr-lang.org/docs/getting-started) documentation for expressions.

Expand Down
8 changes: 8 additions & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
prometheus:
addr: "http://localhost:4000"
expressions:
- name: goroutines
query: sum(rate(go_gc_duration_seconds{app_kubernetes_io_name="game-server"}[5m])) by (service)
expr: "float(query_result[0].Value.String()) >= 0.0 ? 'operational': 'error'"
http:
addr: ":9999"

0 comments on commit 0efce9e

Please sign in to comment.