2021-07-07 00:05:30 -07:00
|
|
|
{
|
|
|
|
|
"version": "0.2.0",
|
|
|
|
|
"configurations": [
|
|
|
|
|
{
|
|
|
|
|
"name": "Run Server",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "auto",
|
2022-11-23 11:32:42 -05:00
|
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
2021-07-07 00:05:30 -07:00
|
|
|
"env": {},
|
2022-02-04 09:18:40 +01:00
|
|
|
"cwd": "${workspaceFolder}",
|
2024-06-10 10:30:03 -05:00
|
|
|
"args": ["server", "--homepath", "${workspaceFolder}", "--packaging", "dev", "cfg:app_mode=development"]
|
2021-10-04 14:26:19 +02:00
|
|
|
},
|
2023-12-05 14:31:49 -08:00
|
|
|
{
|
2024-01-10 07:45:23 -08:00
|
|
|
"name": "Run API Server (testdata)",
|
2023-12-05 14:31:49 -08:00
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "auto",
|
|
|
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
|
|
|
|
"env": {},
|
|
|
|
|
"cwd": "${workspaceFolder}",
|
2024-04-22 16:33:05 +01:00
|
|
|
"args": ["apiserver", "--secure-port=8443", "--runtime-config=testdata.datasource.grafana.app/v0alpha1=true"]
|
2024-01-17 12:21:24 -08:00
|
|
|
},
|
2024-03-25 17:22:34 +03:00
|
|
|
{
|
|
|
|
|
"name": "Run API Server (query-localhost)",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "auto",
|
|
|
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
|
|
|
|
"env": {},
|
|
|
|
|
"cwd": "${workspaceFolder}",
|
2024-04-22 16:33:05 +01:00
|
|
|
"args": [
|
|
|
|
|
"apiserver",
|
|
|
|
|
"--secure-port=8443",
|
|
|
|
|
"--runtime-config=query.grafana.app/v0alpha1=true",
|
|
|
|
|
"--grafana.authn.signing-keys-url=http://localhost:3000/api/signing-keys/keys",
|
|
|
|
|
"--hg-url=http://localhost:3000",
|
|
|
|
|
"--hg-key=$HGAPIKEY"
|
|
|
|
|
]
|
2024-03-25 17:22:34 +03:00
|
|
|
},
|
2024-05-29 10:02:35 +02:00
|
|
|
{
|
|
|
|
|
"name": "Run Server (query GRPC Storage Server)",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "auto",
|
|
|
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
2024-06-10 10:30:03 -05:00
|
|
|
"env": { "GF_GRAFANA_APISERVER_STORAGE_TYPE": "unified-grpc" },
|
2024-05-29 10:02:35 +02:00
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
|
"args": ["server", "--homepath", "${workspaceFolder}", "--packaging", "dev"]
|
|
|
|
|
},
|
2024-05-03 20:24:39 +05:30
|
|
|
{
|
|
|
|
|
"name": "Run Storage Server",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "auto",
|
|
|
|
|
"program": "${workspaceFolder}/pkg/cmd/grafana/",
|
2024-06-10 10:30:03 -05:00
|
|
|
"env": { "GF_DEFAULT_TARGET": "storage-server", "GF_SERVER_HTTP_PORT": "3001" },
|
2024-05-03 20:24:39 +05:30
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
|
"args": ["server", "target", "--homepath", "${workspaceFolder}", "--packaging", "dev"]
|
|
|
|
|
},
|
2022-11-03 21:08:38 +07:00
|
|
|
{
|
|
|
|
|
"name": "Attach to Chrome",
|
|
|
|
|
"port": 9222,
|
|
|
|
|
"request": "attach",
|
|
|
|
|
"type": "chrome",
|
|
|
|
|
"webRoot": "${workspaceFolder}"
|
|
|
|
|
},
|
2021-10-04 14:26:19 +02:00
|
|
|
{
|
2024-04-22 16:33:24 +01:00
|
|
|
"name": "Debug UI test",
|
2021-10-04 14:26:19 +02:00
|
|
|
"type": "node",
|
|
|
|
|
"request": "launch",
|
2022-02-17 14:18:09 +01:00
|
|
|
"runtimeExecutable": "yarn",
|
|
|
|
|
"runtimeArgs": ["run", "jest", "--runInBand", "${file}"],
|
2021-10-04 14:26:19 +02:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
|
"internalConsoleOptions": "neverOpen",
|
2024-04-22 16:32:46 +01:00
|
|
|
"env": {
|
|
|
|
|
"NODE_ENV": "test"
|
|
|
|
|
}
|
2023-01-24 14:44:44 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Debug Go test",
|
|
|
|
|
"type": "go",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"mode": "test",
|
|
|
|
|
"program": "${workspaceFolder}/${relativeFileDirname}",
|
|
|
|
|
"showLog": true
|
2021-07-07 00:05:30 -07:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|