Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
62ac465
Bump @testing-library/dom from 10.3.0 to 10.3.1 (#283)
dependabot[bot] Jul 5, 2024
10dd512
Bump cspell from 8.10.0 to 8.10.4 (#285)
dependabot[bot] Jul 5, 2024
753dc22
Bump docker/build-push-action from 5 to 6 (#272)
dependabot[bot] Jul 12, 2024
190a91c
Bump @testing-library/dom from 10.3.1 to 10.3.2 (#292)
dependabot[bot] Jul 15, 2024
c5827a0
Bump cypress from 13.13.0 to 13.13.1 (#293)
dependabot[bot] Jul 16, 2024
0c2cf87
Bump cspell from 8.10.4 to 8.11.0 (#294)
dependabot[bot] Jul 16, 2024
600af1d
Use `datasource.Manage` to initialise the datasource (#290)
adamyeats Jul 18, 2024
3b592db
Refactor for improved structure (#295)
adamyeats Jul 22, 2024
3a5d449
Bump @testing-library/dom from 10.3.2 to 10.4.0 (#296)
dependabot[bot] Jul 22, 2024
f6ddea4
Bump cspell from 8.11.0 to 8.12.1 (#297)
dependabot[bot] Jul 22, 2024
2840e75
Bump github.com/grafana/grafana-plugin-sdk-go from 0.233.0 to 0.241.0…
dependabot[bot] Jul 29, 2024
c40debe
Bump cspell from 8.12.1 to 8.13.0 (#301)
dependabot[bot] Jul 30, 2024
b4dfae8
Bump cypress from 13.13.1 to 13.13.2 (#302)
dependabot[bot] Jul 31, 2024
3514b9a
Fix Event data link in ID field (#286)
Pexers Aug 2, 2024
d28fba6
Bump cspell from 8.13.0 to 8.13.1 (#304)
dependabot[bot] Aug 2, 2024
dcfe3dd
Bump cspell from 8.13.1 to 8.13.2 (#305)
dependabot[bot] Aug 8, 2024
60ae478
Bump github.com/grafana/grafana-plugin-sdk-go from 0.241.0 to 0.242.0…
dependabot[bot] Aug 9, 2024
cf08bd6
Upgrade fast-loops (#307)
aangelisc Aug 9, 2024
96c0863
Prepare 1.8.1 (#308)
aangelisc Aug 9, 2024
172b781
Bump cspell from 8.13.2 to 8.13.3 (#309)
dependabot[bot] Aug 12, 2024
4592e4c
Bump cypress from 13.13.2 to 13.13.3 (#310)
dependabot[bot] Aug 14, 2024
2c0321f
Bump cspell from 8.13.3 to 8.14.1 (#314)
dependabot[bot] Aug 19, 2024
38c0030
Bump cspell from 8.14.1 to 8.14.2 (#316)
dependabot[bot] Aug 20, 2024
4bc121b
Bump cypress from 13.13.3 to 13.14.0 (#317)
dependabot[bot] Aug 27, 2024
f14f13e
Add errorsource (#313)
aangelisc Aug 28, 2024
73f2304
Prepare 1.8.2 (#319)
aangelisc Aug 28, 2024
c813058
Bump cypress from 13.14.0 to 13.14.1 (#322)
dependabot[bot] Aug 29, 2024
3a38848
Bump github.com/grafana/grafana-plugin-sdk-go from 0.242.0 to 0.245.0…
dependabot[bot] Sep 3, 2024
6d6f8be
Bump cypress from 13.14.1 to 13.14.2 (#324)
dependabot[bot] Sep 4, 2024
cc9023a
Bump github.com/grafana/grafana-plugin-sdk-go from 0.245.0 to 0.246.0…
dependabot[bot] Sep 6, 2024
9a5719a
Add pagingtion for Team API (#325)
scarletnguyen13 Sep 17, 2024
d6b939f
Bump cspell from 8.14.2 to 8.14.3 (#330)
dependabot[bot] Sep 17, 2024
6b70556
Bump github.com/grafana/grafana-plugin-sdk-go from 0.246.0 to 0.248.0…
dependabot[bot] Sep 18, 2024
5926c15
Bump cspell from 8.14.3 to 8.14.4 (#332)
dependabot[bot] Sep 18, 2024
415759d
Bump github.com/grafana/grafana-plugin-sdk-go from 0.248.0 to 0.250.0…
dependabot[bot] Sep 20, 2024
0f4b4dc
Bump github.com/grafana/grafana-plugin-sdk-go from 0.250.0 to 0.250.2…
dependabot[bot] Sep 23, 2024
63f1560
Bump github.com/grafana/grafana-plugin-sdk-go from 0.250.2 to 0.251.0…
dependabot[bot] Sep 25, 2024
8ad9ef2
Bump cypress from 13.14.2 to 13.15.0 (#336)
dependabot[bot] Sep 25, 2024
ec3a457
Bump braces from 3.0.2 to 3.0.3 (#339)
dependabot[bot] Sep 26, 2024
436dd60
Bump dompurify from 3.0.11 to 3.1.6 (#337)
dependabot[bot] Sep 26, 2024
ec5a022
Bump path-to-regexp from 1.8.0 to 1.9.0 (#338)
dependabot[bot] Sep 26, 2024
e509aa3
Bump micromatch from 4.0.4 to 4.0.8 (#340)
dependabot[bot] Sep 26, 2024
720abe2
Prepare 1.8.3 (#341)
aangelisc Sep 26, 2024
64497c6
Bump cspell from 8.14.4 to 8.15.1 (#348)
dependabot[bot] Oct 11, 2024
9e3d8c7
Bump cspell from 8.15.1 to 8.15.2 (#349)
dependabot[bot] Oct 14, 2024
cc0323f
Bump cspell from 8.15.2 to 8.15.3 (#352)
dependabot[bot] Oct 16, 2024
eae3972
Bump cspell from 8.15.3 to 8.15.4 (#354)
dependabot[bot] Oct 18, 2024
c4c548d
Bump github.com/grafana/grafana-plugin-sdk-go from 0.251.0 to 0.256.0…
dependabot[bot] Oct 22, 2024
f15298d
errorsource updates (#357)
aangelisc Oct 24, 2024
82d659f
Bump github.com/grafana/grafana-plugin-sdk-go from 0.256.0 to 0.257.0…
dependabot[bot] Oct 24, 2024
733ee49
Bump cypress from 13.15.0 to 13.15.1 (#359)
dependabot[bot] Oct 24, 2024
3d0d777
Bump cspell from 8.15.4 to 8.15.5 (#362)
dependabot[bot] Oct 30, 2024
0cea97f
Bump cspell from 8.15.5 to 8.15.7 (#363)
dependabot[bot] Nov 4, 2024
7f5dcab
Bump github.com/grafana/grafana-plugin-sdk-go from 0.257.0 to 0.258.0…
dependabot[bot] Nov 5, 2024
f69e2a8
Bump cypress from 13.15.1 to 13.15.2 (#366)
dependabot[bot] Nov 6, 2024
c0e5637
Bump github.com/grafana/grafana-plugin-sdk-go from 0.258.0 to 0.259.1…
dependabot[bot] Nov 7, 2024
e2b2a98
Release notifier (#361)
aangelisc Nov 7, 2024
ba2b6f5
Bump github.com/grafana/grafana-plugin-sdk-go from 0.259.1 to 0.259.2…
dependabot[bot] Nov 7, 2024
175379b
Prepare 1.8.4 (#367)
aangelisc Nov 11, 2024
5b73e9a
Bump cspell from 8.15.7 to 8.16.0 (#369)
dependabot[bot] Nov 11, 2024
86d97ff
Bump cypress from 13.15.2 to 13.16.0 (#372)
dependabot[bot] Nov 19, 2024
b925e1a
Bump github.com/grafana/grafana-plugin-sdk-go from 0.259.2 to 0.259.3…
dependabot[bot] Nov 20, 2024
98415ca
Bump github.com/grafana/grafana-plugin-sdk-go from 0.259.3 to 0.259.4…
dependabot[bot] Nov 22, 2024
a38d134
Bump cspell from 8.16.0 to 8.16.1 (#379)
dependabot[bot] Nov 27, 2024
2c466c1
Bump github.com/grafana/grafana-plugin-sdk-go from 0.259.4 to 0.260.0…
dependabot[bot] Nov 27, 2024
1e22f31
Prepare 1.8.5 (#380)
aangelisc Nov 28, 2024
de6efd4
Bump github.com/grafana/grafana-plugin-sdk-go from 0.260.0 to 0.260.1…
dependabot[bot] Nov 28, 2024
fdc2bed
Bump cypress from 13.16.0 to 13.16.1 (#382)
dependabot[bot] Dec 4, 2024
14cf38a
Add plugin e2e (#229)
alyssajoyner Dec 11, 2024
530b61e
Bump cspell from 8.16.1 to 8.17.1 (#391)
dependabot[bot] Dec 16, 2024
8ef01d8
Bump cspell from 8.17.1 to 8.17.2 (#404)
dependabot[bot] Jan 13, 2025
92d2e28
Allow sorting events API results by a custom field (#403)
abnvanand Jan 14, 2025
f344321
Bump @testing-library/user-event from 14.5.2 to 14.6.0 (#407)
dependabot[bot] Jan 15, 2025
96aafb0
Make substatus data available (#393)
aboks Jan 16, 2025
839c957
Bump @testing-library/user-event from 14.6.0 to 14.6.1 (#410)
dependabot[bot] Jan 21, 2025
3c12147
Bump cspell from 8.17.2 to 8.17.3 (#416)
dependabot[bot] Jan 28, 2025
15b416c
Update grafana-plugin-sdk-go to v0.265.0 (#425)
ivanahuckova Feb 14, 2025
0d9ff5c
Bump github.com/grafana/grafana-plugin-sdk-go from 0.265.0 to 0.266.0…
dependabot[bot] Feb 19, 2025
06c946e
Bump @playwright/test from 1.43.1 to 1.50.1 (#419)
dependabot[bot] Feb 19, 2025
e59906b
remove grafana experimental (#415)
itsgareth Feb 19, 2025
256f33b
Bump cross-spawn from 7.0.3 to 7.0.6 (#429)
dependabot[bot] Feb 19, 2025
b317974
Bump nanoid from 3.3.7 to 3.3.8 (#431)
dependabot[bot] Feb 19, 2025
b576e77
Bump dompurify from 3.1.6 to 3.2.4 (#430)
dependabot[bot] Feb 19, 2025
6115896
Bump version and update changelog (#433)
aangelisc Feb 19, 2025
ae95c89
Bump terser-webpack-plugin from 5.3.10 to 5.3.11 (#434)
dependabot[bot] Feb 19, 2025
1cac94e
Bump cspell from 8.17.3 to 8.17.4 (#437)
dependabot[bot] Feb 19, 2025
4f6d7d9
Update config to support fork tests (#438)
aangelisc Feb 20, 2025
8fe7a6b
Allow choosing fields to fetch for sentry events (#400)
abnvanand Feb 20, 2025
d2afe52
Bump eslint-plugin-jsdoc from 46.10.1 to 50.6.4 (#447)
dependabot[bot] Mar 11, 2025
5debaea
Bump eslint-plugin-react-hooks from 4.6.2 to 5.2.0 (#444)
dependabot[bot] Mar 11, 2025
a00c52c
Bump @typescript-eslint/eslint-plugin from 6.21.0 to 7.0.0 (#436)
dependabot[bot] Mar 11, 2025
aaa6f5f
Bump @playwright/test from 1.50.1 to 1.51.0 (#449)
dependabot[bot] Mar 11, 2025
a79f9af
Bump @stylistic/eslint-plugin-ts from 2.13.0 to 3.1.0 (#439)
dependabot[bot] Mar 12, 2025
08bcb4b
Bump terser-webpack-plugin from 5.3.11 to 5.3.14 (#450)
dependabot[bot] Mar 12, 2025
3b4526f
Bump eslint-config-prettier from 8.10.0 to 10.1.1 (#451)
dependabot[bot] Mar 12, 2025
c966ba6
Bump github.com/grafana/grafana-plugin-sdk-go from 0.266.0 to 0.270.0…
dependabot[bot] Mar 12, 2025
93bba67
Bump the dependencies group across 1 directory with 7 updates (#441)
dependabot[bot] Mar 12, 2025
1a8011a
Bump eslint-plugin-jsdoc from 50.6.4 to 50.6.6 (#453)
dependabot[bot] Mar 12, 2025
cb1cef6
Bump cspell from 8.17.4 to 8.17.5 (#454)
dependabot[bot] Mar 12, 2025
6772b9c
Bump eslint-plugin-jsdoc from 50.6.6 to 50.6.8 (#460)
dependabot[bot] Mar 17, 2025
adb47a5
Bump @playwright/test from 1.51.0 to 1.51.1 (#461)
dependabot[bot] Mar 17, 2025
ec8c0ab
Bump github.com/grafana/grafana-plugin-sdk-go from 0.270.0 to 0.274.0…
dependabot[bot] Mar 21, 2025
66b4e77
Bump cspell from 8.17.5 to 8.18.0 (#466)
dependabot[bot] Mar 26, 2025
ca6cd66
Bump eslint-plugin-jsdoc from 50.6.8 to 50.6.9 (#463)
dependabot[bot] Mar 26, 2025
fd0d67d
Bump the dependencies group across 1 directory with 6 updates (#465)
dependabot[bot] Mar 28, 2025
54ec13c
Bump @grafana/plugin-e2e from 1.19.1 to 1.19.2 in the dependencies gr…
dependabot[bot] Mar 31, 2025
1dfeee6
Create plugin update (#452)
aangelisc Mar 31, 2025
7520990
Bump cspell from 8.18.0 to 8.18.1 (#470)
dependabot[bot] Mar 31, 2025
ef04da9
Bump plugin version to 2.0.0 (#472)
beejeebus Apr 2, 2025
3557a93
Downgrade playwright (#473)
aangelisc Apr 2, 2025
492ec67
Bump @playwright/test from 1.50.1 to 1.51.1 (#474)
dependabot[bot] Apr 2, 2025
608fd8e
Bump eslint-plugin-react from 7.37.4 to 7.37.5 (#476)
dependabot[bot] Apr 3, 2025
eaa3d53
Bump eslint-config-prettier from 10.1.1 to 10.1.2 (#480)
dependabot[bot] Apr 10, 2025
84992f9
Bump cspell from 8.18.1 to 8.19.0 (#484)
dependabot[bot] Apr 16, 2025
a5b5164
Added tags auto completion in the events query builder (#477)
nadav-dav Apr 17, 2025
3c0b212
Added sorting direction to the events query builder (#478)
nadav-dav Apr 17, 2025
613a05d
Prepare 2.1.0 (#485)
aangelisc Apr 17, 2025
0ce18bd
Bump @playwright/test from 1.50.1 to 1.52.0 (#487)
dependabot[bot] Apr 17, 2025
c14555e
Bump cspell from 8.19.0 to 8.19.1 (#488)
dependabot[bot] Apr 18, 2025
86ad3b7
Bump cspell from 8.19.1 to 8.19.2 (#489)
dependabot[bot] Apr 21, 2025
0f84c34
Bump eslint-plugin-jsdoc from 50.6.9 to 50.6.10 (#490)
dependabot[bot] Apr 23, 2025
7a78367
Downgrade playwright and add it to dependabot ignore list (#492)
beejeebus Apr 24, 2025
4bf3af8
Bump github.com/grafana/grafana-plugin-sdk-go from 0.274.0 to 0.277.0…
dependabot[bot] Apr 24, 2025
88a6b88
Bump the dependencies group across 1 directory with 7 updates (#491)
dependabot[bot] Apr 24, 2025
ac4570e
Bump actions/create-github-app-token from 1 to 2 (#494)
dependabot[bot] Apr 24, 2025
7e5ecc7
Bump eslint-plugin-jsdoc from 50.6.10 to 50.6.11 (#498)
dependabot[bot] Apr 25, 2025
b5ce002
GHA: Harden workflows (#500)
aangelisc Apr 29, 2025
4426ab8
Secure GHA Workflows (#510)
alyssajoyner May 14, 2025
ba0e5ee
Add push and publish Github Action files (#511)
beejeebus May 14, 2025
752a991
Remove unused workflows (#516)
aangelisc May 27, 2025
1e5f796
Bump github.com/grafana/grafana-plugin-sdk-go from 0.277.0 to 0.277.1…
dependabot[bot] May 28, 2025
f78c450
Bump eslint-config-prettier from 10.1.2 to 10.1.5 (#507)
dependabot[bot] May 28, 2025
d952e43
Bump semver from 7.7.1 to 7.7.2 (#509)
dependabot[bot] May 28, 2025
635fbd9
Bump eslint-plugin-jsdoc from 50.6.11 to 50.6.17 (#513)
dependabot[bot] May 28, 2025
1571cb0
Bump the dependencies group across 1 directory with 7 updates (#514)
dependabot[bot] May 28, 2025
42e7f45
Bump cspell from 8.19.2 to 9.0.2 (#515)
dependabot[bot] May 28, 2025
e598bad
Prepare 2.1.1 (#521)
ivanahuckova May 29, 2025
e79986f
[chore] Update babel (#522)
beejeebus Jun 4, 2025
1395084
Bump eslint-plugin-jsdoc from 50.6.17 to 50.7.1 (#523)
dependabot[bot] Jun 9, 2025
ee34e46
Prepare release v2.1.2 (#526)
beejeebus Jun 12, 2025
3cb46a2
Add support for spans (#517)
nadav-dav Jun 12, 2025
bb8e283
Prepare release v2.2.0 (#534)
beejeebus Jun 24, 2025
8293a72
Fix next link parsing (#538)
aangelisc Jun 27, 2025
3364111
Bump the dependencies group across 1 directory with 7 updates (#532)
dependabot[bot] Jun 30, 2025
f5bfadb
Bump @babel/runtime from 7.24.1 to 7.27.6 (#539)
dependabot[bot] Jun 30, 2025
5c7af45
Bump eslint-plugin-jsdoc from 50.7.1 to 51.2.3 (#535)
dependabot[bot] Jun 30, 2025
38eacbd
Bump github.com/grafana/grafana-plugin-sdk-go from 0.277.1 to 0.278.0…
dependabot[bot] Jun 30, 2025
76641b4
Bump cspell from 9.0.2 to 9.1.2 (#536)
dependabot[bot] Jun 30, 2025
f77b591
Prepare 2.2.1 (#540)
aangelisc Jun 30, 2025
8e9805e
Bump @grafana/plugin-e2e from 2.1.1 to 2.1.2 in the dependencies grou…
dependabot[bot] Jul 3, 2025
3c462d0
Bump eslint-plugin-jsdoc from 51.2.3 to 51.3.3 (#543)
dependabot[bot] Jul 3, 2025
3a731d7
Deploy to Grafana Cloud only from publish workflow (#550)
beejeebus Jul 15, 2025
4089025
Remove dependabot-reviewer workflow
beejeebus Jul 16, 2025
32b373b
Bump cspell from 9.1.2 to 9.1.5
dependabot[bot] Jul 15, 2025
405ffed
Bump @grafana/plugin-e2e from 2.1.2 to 2.1.3 in the dependencies group
dependabot[bot] Jul 15, 2025
74b894a
Bump eslint-plugin-jsdoc from 51.3.3 to 51.4.0
dependabot[bot] Jul 15, 2025
a5f1ccc
Prepare release v2.2.2
beejeebus Jul 16, 2025
0761907
Bump eslint-plugin-jsdoc from 51.4.0 to 52.0.2
dependabot[bot] Aug 1, 2025
730f400
Bump @testing-library/dom from 10.4.0 to 10.4.1
dependabot[bot] Jul 28, 2025
62a7494
Bump eslint-config-prettier from 10.1.5 to 10.1.8
dependabot[bot] Aug 5, 2025
1bc93eb
Bump cspell from 9.1.5 to 9.2.0
dependabot[bot] Jul 22, 2025
748d729
Prepare release v2.2.3
beejeebus Aug 5, 2025
a1e983a
Bump eslint-plugin-jsdoc from 52.0.2 to 53.0.1
dependabot[bot] Aug 12, 2025
f140e70
Update release workflow (#604)
alyssajoyner Oct 9, 2025
4a99b56
Issues documentation update (#606)
aangelisc Oct 14, 2025
3ff9d3f
Bump github.com/stretchr/testify from 1.10.0 to 1.11.1 (#573)
dependabot[bot] Oct 27, 2025
801ac12
Publish to every environment on Cloud and Add On-Prem promotion (#628)
Multimo Nov 6, 2025
6eb9aa9
chore(deps): update grafana/plugin-actions digest to 428421c (#613)
renovate-sh-app[bot] Dec 5, 2025
4eae67d
chore(deps): update dependency @types/lodash to ^4.17.15 (#614)
renovate-sh-app[bot] Dec 5, 2025
d0b590b
fix(deps): update dependency rxjs to v7.8.2 (#616)
renovate-sh-app[bot] Dec 5, 2025
3634152
chore(deps): update dependency @types/testing-library__jest-dom to v5…
renovate-sh-app[bot] Dec 5, 2025
25ef155
chore(deps): update dependency glob to v10.5.0 [security] (#630)
renovate-sh-app[bot] Dec 5, 2025
1c441e7
Bump eslint-plugin-jsdoc from 53.0.1 to 61.1.11 (#629)
dependabot[bot] Dec 5, 2025
04804d4
Bump cspell from 9.2.0 to 9.2.2 (#618)
dependabot[bot] Dec 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/.cprc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "4.2.5"
"version": "5.18.5"
}
8 changes: 7 additions & 1 deletion .config/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
*
* In order to extend the configuration follow the steps in
* https://grafana.com/developers/plugin-tools/create-a-plugin/extend-a-plugin/extend-configurations#extend-the-eslint-config
* https://grafana.com/developers/plugin-tools/get-started/set-up-development-environment#extend-the-eslint-config
*/
{
"extends": ["@grafana/eslint-config"],
Expand All @@ -20,6 +20,12 @@
"parserOptions": {
"project": "./tsconfig.json"
}
},
{
"files": ["./tests/**/*"],
"rules": {
"react-hooks/rules-of-hooks": "off",
},
}
]
}
65 changes: 63 additions & 2 deletions .config/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,75 @@ ARG grafana_image=grafana-enterprise

FROM grafana/${grafana_image}:${grafana_version}

ARG anonymous_auth_enabled=true
ARG development=false
ARG TARGETARCH

ARG GO_VERSION=1.21.6
ARG GO_ARCH=${TARGETARCH:-amd64}

ENV DEV "${development}"

# Make it as simple as possible to access the grafana instance for development purposes
# Do NOT enable these settings in a public facing / production grafana instance
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin"
ENV GF_AUTH_ANONYMOUS_ENABLED "true"
ENV GF_AUTH_ANONYMOUS_ENABLED "${anonymous_auth_enabled}"
ENV GF_AUTH_BASIC_ENABLED "false"
# Set development mode so plugins can be loaded without the need to sign
ENV GF_DEFAULT_APP_MODE "development"

# Inject livereload script into grafana index.html

LABEL maintainer="Grafana Labs <[email protected]>"

ENV GF_PATHS_HOME="/usr/share/grafana"
WORKDIR $GF_PATHS_HOME

USER root

# Installing supervisor and inotify-tools
RUN if [ "${development}" = "true" ]; then \
if grep -i -q alpine /etc/issue; then \
apk add supervisor inotify-tools git; \
elif grep -i -q ubuntu /etc/issue; then \
DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y supervisor inotify-tools git && \
rm -rf /var/lib/apt/lists/*; \
else \
echo 'ERROR: Unsupported base image' && /bin/false; \
fi \
fi

COPY supervisord/supervisord.conf /etc/supervisor.d/supervisord.ini
COPY supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf


# Installing Go
RUN if [ "${development}" = "true" ]; then \
curl -O -L https://golang.org/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
rm -rf /usr/local/go && \
tar -C /usr/local -xzf go${GO_VERSION}.linux-${GO_ARCH}.tar.gz && \
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bashrc && \
rm -f go${GO_VERSION}.linux-${GO_ARCH}.tar.gz; \
fi

# Installing delve for debugging
RUN if [ "${development}" = "true" ]; then \
/usr/local/go/bin/go install github.com/go-delve/delve/cmd/dlv@latest; \
fi

# Installing mage for plugin (re)building
RUN if [ "${development}" = "true" ]; then \
git clone https://github.com/magefile/mage; \
cd mage; \
export PATH=$PATH:/usr/local/go/bin; \
go run bootstrap.go; \
fi

# Inject livereload script into grafana index.html
RUN sed -i 's|</body>|<script src="http://localhost:35729/livereload.js"></script></body>|g' /usr/share/grafana/public/views/index.html


COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
7 changes: 4 additions & 3 deletions .config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,15 @@ version: '3.7'

services:
grafana:
container_name: 'myorg-basic-app'
extends:
file: .config/docker-compose-base.yaml
service: grafana
build:
context: ./.config
args:
grafana_version: ${GRAFANA_VERSION:-9.1.2}
grafana_image: ${GRAFANA_IMAGE:-grafana}
```

In this example, we assign the environment variable `GRAFANA_IMAGE` to the build arg `grafana_image` with a default value of `grafana`. This will allow you to set the value while running the docker-compose commands, which might be convenient in some scenarios.
In this example, we assign the environment variable `GRAFANA_IMAGE` to the build arg `grafana_image` with a default value of `grafana`. This will allow you to set the value while running the docker compose commands, which might be convenient in some scenarios.

---
31 changes: 31 additions & 0 deletions .config/docker-compose-base.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
grafana:
user: root
container_name: 'grafana-sentry-datasource'

build:
context: .
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-11.5.2}
development: ${DEVELOPMENT:-false}
anonymous_auth_enabled: ${ANONYMOUS_AUTH_ENABLED:-true}
ports:
- 3000:3000/tcp
- 2345:2345/tcp # delve
security_opt:
- 'apparmor:unconfined'
- 'seccomp:unconfined'
cap_add:
- SYS_PTRACE
volumes:
- ../dist:/var/lib/grafana/plugins/grafana-sentry-datasource
- ../provisioning:/etc/grafana/provisioning
- ..:/root/grafana-sentry-datasource

environment:
NODE_ENV: development
GF_LOG_FILTERS: plugin.grafana-sentry-datasource:debug
GF_LOG_LEVEL: debug
GF_DATAPROXY_LOGGING: 1
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: grafana-sentry-datasource
18 changes: 18 additions & 0 deletions .config/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

if [ "${DEV}" = "false" ]; then
echo "Starting test mode"
exec /run.sh
fi

echo "Starting development mode"

if grep -i -q alpine /etc/issue; then
exec /usr/bin/supervisord -c /etc/supervisord.conf
elif grep -i -q ubuntu /etc/issue; then
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
else
echo 'ERROR: Unsupported base image'
exit 1
fi

9 changes: 6 additions & 3 deletions .config/jest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
*
* In order to extend the configuration follow the steps in
* https://grafana.com/developers/plugin-tools/create-a-plugin/extend-a-plugin/extend-configurations#extend-the-jest-config
* https://grafana.com/developers/plugin-tools/get-started/set-up-development-environment#extend-the-jest-config
*/

import '@testing-library/jest-dom';
import { TextEncoder, TextDecoder } from 'util';

Object.assign(global, { TextDecoder, TextEncoder });

// https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom
Object.defineProperty(global, 'matchMedia', {
writable: true,
value: jest.fn().mockImplementation((query) => ({
value: (query) => ({
matches: false,
media: query,
onchange: null,
Expand All @@ -19,7 +22,7 @@ Object.defineProperty(global, 'matchMedia', {
addEventListener: jest.fn(),
removeEventListener: jest.fn(),
dispatchEvent: jest.fn(),
})),
}),
});

HTMLCanvasElement.prototype.getContext = () => {};
2 changes: 1 addition & 1 deletion .config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
*
* In order to extend the configuration follow the steps in
* https://grafana.com/developers/plugin-tools/create-a-plugin/extend-a-plugin/extend-configurations#extend-the-jest-config
* https://grafana.com/developers/plugin-tools/get-started/set-up-development-environment#extend-the-jest-config
*/

const path = require('path');
Expand Down
47 changes: 47 additions & 0 deletions .config/supervisord/supervisord.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[supervisord]
nodaemon=true
user=root

[program:grafana]
user=root
directory=/var/lib/grafana
command=bash -c 'while [ ! -f /root/grafana-sentry-datasource/dist/gpx_sentry-datasource* ]; do sleep 1; done; /run.sh'
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
killasgroup=true
stopasgroup=true
autostart=true

[program:delve]
user=root
command=/bin/bash -c 'pid=""; while [ -z "$pid" ]; do pid=$(pgrep -f gpx_sentry-datasource); done; /root/go/bin/dlv attach --api-version=2 --headless --continue --accept-multiclient --listen=:2345 $pid'
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
killasgroup=false
stopasgroup=false
autostart=true
autorestart=true

[program:build-watcher]
user=root
command=/bin/bash -c 'while inotifywait -e modify,create,delete -r /var/lib/grafana/plugins/grafana-sentry-datasource; do echo "Change detected, restarting delve...";supervisorctl restart delve; done'
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
killasgroup=true
stopasgroup=true
autostart=true

[program:mage-watcher]
user=root
environment=PATH="/usr/local/go/bin:/root/go/bin:%(ENV_PATH)s"
directory=/root/grafana-sentry-datasource
command=/bin/bash -c 'git config --global --add safe.directory /root/grafana-sentry-datasource && mage -v watch'
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
killasgroup=true
stopasgroup=true
autostart=true
2 changes: 1 addition & 1 deletion .config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ⚠️⚠️⚠️ THIS FILE WAS SCAFFOLDED BY `@grafana/create-plugin`. DO NOT EDIT THIS FILE DIRECTLY. ⚠️⚠️⚠️
*
* In order to extend the configuration follow the steps in
* https://grafana.com/developers/plugin-tools/create-a-plugin/extend-a-plugin/extend-configurations#extend-the-typescript-config
* https://grafana.com/developers/plugin-tools/get-started/set-up-development-environment#extend-the-typescript-config
*/
{
"compilerOptions": {
Expand Down
33 changes: 33 additions & 0 deletions .config/webpack/BuildModeWebpackPlugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * as webpack from 'webpack';

const PLUGIN_NAME = 'BuildModeWebpack';

export class BuildModeWebpackPlugin {
apply(compiler: webpack.Compiler) {
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
compilation.hooks.processAssets.tap(
{
name: PLUGIN_NAME,
stage: webpack.Compilation.PROCESS_ASSETS_STAGE_ADDITIONS,
},
async () => {
const assets = compilation.getAssets();
for (const asset of assets) {
if (asset.name.endsWith('plugin.json')) {
const pluginJsonString = asset.source.source().toString();
const pluginJsonWithBuildMode = JSON.stringify(
{
...JSON.parse(pluginJsonString),
buildMode: compilation.options.mode,
},
null,
4
);
compilation.updateAsset(asset.name, new webpack.sources.RawSource(pluginJsonWithBuildMode));
}
}
}
);
});
}
}
5 changes: 5 additions & 0 deletions .config/webpack/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export function getPluginJson() {
return require(path.resolve(process.cwd(), `${SOURCE_DIR}/plugin.json`));
}

export function getCPConfigVersion() {
const cprcJson = path.resolve(__dirname, '../', '.cprc.json');
return fs.existsSync(cprcJson) ? require(cprcJson).version : { version: 'unknown' };
}

export function hasReadme() {
return fs.existsSync(path.resolve(process.cwd(), SOURCE_DIR, 'README.md'));
}
Expand Down
Loading