You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,6 +335,9 @@ The `mcp-grafana` binary supports various command-line flags for configuration:
335
335
-`--metrics`: Enable Prometheus metrics endpoint at `/metrics`
336
336
-`--metrics-address`: Separate address for metrics server (e.g., `:9090`). If empty, metrics are served on the main server
337
337
338
+
**Session Management:**
339
+
-`--session-idle-timeout-minutes`: Session idle timeout in minutes. Sessions with no activity for this duration are automatically reaped - default: `30`. Set to `0` to disable session reaping. Only relevant for SSE and streamable-http transports.
340
+
338
341
**Tool Configuration:**
339
342
-`--enabled-tools`: Comma-separated list of enabled categories - default: all categories except `admin`, to enable admin tools, add `admin` to the list (e.g., `"search,datasource,...,admin"`)
340
343
-`--max-loki-log-limit`: Maximum number of log lines returned per `query_loki_logs` call - default: `100`. Note: Set this at least 1 below Loki's server-side `max_entries_limit_per_query` to allow truncation detection (the tool requests `limit+1` internally to detect if more data exists).
sessionIdleTimeoutMinutes:=flag.Int("session-idle-timeout-minutes", 30, "Session idle timeout in minutes. Sessions with no activity for this duration are automatically reaped. Set to 0 to disable session reaping")
419
422
showVersion:=flag.Bool("version", false, "Print the version and exit")
0 commit comments