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