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: Makefile
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ endif
45
45
.PHONY: test-python-e2e
46
46
test-python-e2e: ## Run Python E2E tests (requires docker-compose services and SSE server to be running, use `make run-test-services` and `make run-sse` to start them).
47
47
cd tests && uv sync --all-groups
48
-
cd tests && uv run pytest
48
+
cd tests &&GRAFANA_USERNAME=admin GRAFANA_PASSWORD=admin uv run pytest
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ Scopes define the specific resources that permissions apply to. Each action requ
201
201
202
202
This MCP server works with both local Grafana instances and Grafana Cloud. For Grafana Cloud, use your instance URL (e.g., `https://myinstance.grafana.net`) instead of `http://localhost:3000` in the configuration examples below.
203
203
204
-
1.Create a service account in Grafana with enough permissions to use the tools you want to use,
204
+
1.If using API key authentication, create a service account in Grafana with enough permissions to use the tools you want to use,
205
205
generate a service account token, and copy it to the clipboard for use in the configuration file.
206
206
Follow the [Grafana documentation][service-account] for details.
207
207
@@ -264,7 +264,10 @@ This MCP server works with both local Grafana instances and Grafana Cloud. For G
264
264
"args": [],
265
265
"env": {
266
266
"GRAFANA_URL": "http://localhost:3000", // Or "https://myinstance.grafana.net"for Grafana Cloud
267
-
"GRAFANA_API_KEY": "<your service account token>"
267
+
"GRAFANA_API_KEY": "<your service account token>",
268
+
// If using username/password authentication
269
+
"GRAFANA_USERNAME": "<your username>",
270
+
"GRAFANA_PASSWORD": "<your password>"
268
271
}
269
272
}
270
273
}
@@ -294,7 +297,10 @@ This MCP server works with both local Grafana instances and Grafana Cloud. For G
294
297
],
295
298
"env": {
296
299
"GRAFANA_URL": "http://localhost:3000", // Or "https://myinstance.grafana.net"for Grafana Cloud
297
-
"GRAFANA_API_KEY": "<your service account token>"
300
+
"GRAFANA_API_KEY": "<your service account token>",
// NewGrafanaClient creates a Grafana client with the provided URL and API key.
297
341
// The client is automatically configured with the correct HTTP scheme, debug settings from context, custom TLS configuration if present, and OpenTelemetry instrumentation for distributed tracing.
0 commit comments