Skip to content

Commit 2b3ece0

Browse files
authored
chore: Update embedded grafana's verisons (#4297)
This is something, which has not been updated in a long time. I would like to give this another go in my development workflow.
1 parent 506840f commit 2b3ece0

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pkg/embedded/grafana/grafana.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,40 +30,40 @@ func mustHexDecode(s string) []byte {
3030

3131
var exploreProfileReleases = releaseArtifacts{
3232
{
33-
URL: "https://github.com/grafana/explore-profiles/releases/download/v0.1.5/grafana-pyroscope-app-405.zip",
34-
Sha256Sum: mustHexDecode("6e133f49b0528633146ccf77bb07f09ea1e4aaac3ce9563df42cfd54f6f7e753"),
33+
URL: "https://github.com/grafana/profiles-drilldown/releases/download/v1.5.0/grafana-pyroscope-app-v1.5.0.zip",
34+
Sha256Sum: mustHexDecode("0b74db5c96b5edc8849af9ca830ff98ba6eaff96f30deda225e6cd68514cc574"),
3535
CompressType: CompressTypeZip,
3636
},
3737
}
3838

3939
var grafanaReleases = releaseArtifacts{
4040
{
41-
URL: "https://dl.grafana.com/oss/release/grafana-11.1.0.linux-amd64.tar.gz",
42-
Sha256Sum: mustHexDecode("33822a0b275ea4f216c9a3bdda53d1dba668e3e9873dc52104bc565bcbd8d856"),
41+
URL: "https://dl.grafana.com/oss/release/grafana-12.0.2.linux-amd64.tar.gz",
42+
Sha256Sum: mustHexDecode("c1755b4da918edfd298d5c8d5f1ffce35982ad10e1640ec356570cfb8c34b3e8"),
4343
OS: "linux",
4444
Arch: "amd64",
4545
CompressType: CompressTypeGzip,
4646
StripComponents: 1,
4747
},
4848
{
49-
URL: "https://dl.grafana.com/oss/release/grafana-11.1.0.linux-arm64.tar.gz",
50-
Sha256Sum: mustHexDecode("80b36751c29593b8fdb72906bd05f8833631dd826b8447bcdc9ba9bb0f6122aa"),
49+
URL: "https://dl.grafana.com/oss/release/grafana-12.0.2.linux-arm64.tar.gz",
50+
Sha256Sum: mustHexDecode("bc0b186458cc91e2f96a06ecff2b3b4033b1a6ffd2449817e2a430a0b4ae4f12"),
5151
OS: "linux",
5252
Arch: "arm64",
5353
CompressType: CompressTypeGzip,
5454
StripComponents: 1,
5555
},
5656
{
57-
URL: "https://dl.grafana.com/oss/release/grafana-11.1.0.darwin-amd64.tar.gz",
58-
Sha256Sum: mustHexDecode("96984def29a8d2d2f93471b2f012e9750deb54ab54b41272dc0cd9fc481e0c7d"),
57+
URL: "https://dl.grafana.com/oss/release/grafana-12.0.2.darwin-amd64.tar.gz",
58+
Sha256Sum: mustHexDecode("ca2e97682149e482813c343f6b6d93e2f67dea33eae9a808513c7c62457c66e9"),
5959
OS: "darwin",
6060
Arch: "amd64",
6161
CompressType: CompressTypeGzip,
6262
StripComponents: 1,
6363
},
6464
{
65-
URL: "https://dl.grafana.com/oss/release/grafana-11.1.0.darwin-arm64.tar.gz",
66-
Sha256Sum: mustHexDecode("a7498744d8951c46f742bdc56d429473912fed6daa81fdba9711f2cfc51b8143"),
65+
URL: "https://dl.grafana.com/oss/release/grafana-12.0.2.darwin-arm64.tar.gz",
66+
Sha256Sum: mustHexDecode("3f162ba5dc3bbd0133055ecd40f4f1f791b287bee8e0487449f001b6e1c11a4f"),
6767
OS: "darwin",
6868
Arch: "arm64",
6969
CompressType: CompressTypeGzip,
@@ -280,13 +280,15 @@ func (a *app) starting(ctx context.Context) error {
280280
cmd.Env = append(cmd.Env, fmt.Sprintf("%s=%s", key, value))
281281
}
282282
}
283+
setIfNotExists("GF_PLUGINS_PREINSTALL_DISABLED", "true") // required so we can load the version we have bundled
283284
setIfNotExists("GF_PATHS_DATA", a.dataPath)
284285
setIfNotExists("GF_PATHS_PLUGINS", a.pluginsPath)
285286
setIfNotExists("GF_PATHS_PROVISIONING", a.provisioningPath)
286287
setIfNotExists("GF_AUTH_ANONYMOUS_ENABLED", "true")
287288
setIfNotExists("GF_AUTH_ANONYMOUS_ORG_ROLE", "Admin")
288289
setIfNotExists("GF_AUTH_DISABLE_LOGIN_FORM", "true")
289290
setIfNotExists("GF_SERVER_HTTP_PORT", strconv.Itoa(a.cfg.ListenPort))
291+
setIfNotExists("GF_LOG_LEVEL", "error")
290292

291293
a.g, _ = errgroup.WithContext(ctx)
292294

0 commit comments

Comments
 (0)