From f504c80fe4b98095256533e846f70f4960e728772abc78e9d4c2c017f353b59e Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Wed, 7 Mar 2018 10:11:57 +0000 Subject: [PATCH] Accepting request 583279 from security:logging server:monitoring seems to be a better place for grafana then security:logging. OBS-URL: https://build.opensuse.org/request/show/583279 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/grafana?expand=0&rev=1 --- .gitattributes | 23 + .gitignore | 1 + Makefile | 33 + README | 28 + _service | 13 + _servicedata | 4 + grafana-5.0.0.tar.xz | 3 + grafana-rpmlintrc | 2 + grafana.changes | 2190 ++++++++++++++++++++++++++++++++++++++++++ grafana.spec | 157 +++ 10 files changed, 2454 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README create mode 100644 _service create mode 100644 _servicedata create mode 100644 grafana-5.0.0.tar.xz create mode 100644 grafana-rpmlintrc create mode 100644 grafana.changes create mode 100644 grafana.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4098c71 --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +NAME = grafana +SPEC = $(NAME).spec + +default: verify-deps clean tar + +verify-deps: + @which yarn >/dev/null 2>&1 || ( echo "yarn not found; run \`sudo npm install -g yarn\`" && false ) + @which grunt >/dev/null 2>&1 || ( echo "grunt not found; run \`sudo npm install -g grunt-cli\`" && false ) + +clean: + rm -f $(NAME)-*.tar $(NAME)-*.tar.xz + +tar: + osc service disabledrun + @version=$$( awk '/^Version:/ {print $$2}' $(SPEC) ) && \ + echo "Package version is $$version" && \ + basename=$(NAME)-$$version && \ + tar=$$basename.tar && \ + tmpdir=$$(mktemp -d -p .) && \ + cd $$tmpdir && \ + tar -xf ../$$tar && \ + cd $$basename && \ + sed -i 's/base\///' public/sass/base/_fonts.scss && \ + yarn install --pure-lockfile && \ + grunt release && \ + cp -pr tmp/public . && \ + cp -pr tmp/tools . && \ + cd .. && \ + echo "Updating $$basename/tools $$basename/public in tarball..." && \ + tar -rf ../$$tar $$basename/tools $$basename/public && \ + cd .. && \ + xz $$tar && \ + rm -rf $$tmpdir diff --git a/README b/README new file mode 100644 index 0000000..73511a4 --- /dev/null +++ b/README @@ -0,0 +1,28 @@ + +The tarball is generated via the OBS source service, but Grafana +needs to ship the compiled frontend assets as well, which have to +be built by running yarn and grunt inside the source tree (see +https://github.com/grafana/grafana#building-frontend-assets). +This can't be done at build time on OBS, because it involves +downloading and installing packages from the internet, so instead +we have a Makefile which does the following: + +- Runs `osc service disabledrun` to get the latest source tarball +- Unpacks the tarball to a temporary directory +- Runs `yarn install --pure-lockfile && grunt release` +- Adds the generated "vendor" and "public" content to the tarball, + then compresses it with xz. +- The tarball can then be used by OBS to build an RPM. + +In order for this to work you need to have npm6, yarn and grunt +installed. To get set up, run: + + # zypper in npm6 + # npm install -g yarn + # npm install -g grunt-cli + +Then, to package a new release of Grafana, run `make` then `osc ci` +and you should be good. + +Please direct any questions to Tim Serong + diff --git a/_service b/_service new file mode 100644 index 0000000..a6db7f5 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + https://github.com/grafana/grafana + git + .git + 5.0.0 + v5.0.0 + enable + + + grafana + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..d05551f --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/grafana/grafana + af6e28366bf3413ee3af56c540513dd70f467c41 \ No newline at end of file diff --git a/grafana-5.0.0.tar.xz b/grafana-5.0.0.tar.xz new file mode 100644 index 0000000..17049f7 --- /dev/null +++ b/grafana-5.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5647b158b4961fba4f70c945c74610a4baf25eca607aa892a22d3582d83cfed1 +size 30139268 diff --git a/grafana-rpmlintrc b/grafana-rpmlintrc new file mode 100644 index 0000000..9cbfe1e --- /dev/null +++ b/grafana-rpmlintrc @@ -0,0 +1,2 @@ +addFilter("binaryinfo-readelf-failed") # go binaries are suposedly ELF-compliant +addFilter("no-manual-page-for-binary") diff --git a/grafana.changes b/grafana.changes new file mode 100644 index 0000000..3beacda --- /dev/null +++ b/grafana.changes @@ -0,0 +1,2190 @@ +------------------------------------------------------------------- +Thu Mar 01 10:41:54 UTC 2018 - jfajerski@suse.com + +- Update to version 5.0.0: + + codestyle: extract code into methods + + provisioing: add lookup table provisioned dashboards + + dashboards: save provisioning meta data + + provisioning: enables title changes for dashboards + + provisioning: delete dashboards from db when file is missing + + added hash rate units for monitoring mining processes + + WIP: folder api. #10630 + + dashboards: revert logic of returning 404 in dashboard api if it's a folder for now + + folders: rename api files + + folders: changes and updated tests after merging permissions and new url structure + + folders: changes and updated tests after merging permissions and new url structure + + folders: use new folder api in frontend + + #10724 Fix finding the x bucket + + #10724 Fix whitespace + + Update CHANGELOG.md + + docs: update docs with download links + + build: updated publish script + + Update CHANGELOG.md + + docs: update dashboard model, new url structure and api changes in what's new in v5 + + Update CHANGELOG.md + + Update CHANGELOG.md + + docs: updated whats new + + docs: minor update + + docs: fix download link + + docs: update dashboard model, persistent urls and api changes in what's new in v5 + + scroll: use wheelpropagation. Ref #10772 + + docs: fix + + redirect "permission denied" requests to "/" (#10773) + + Update changelog with deprecation notes of http api + + docs: video fix + + dashlist: scroll fix when no header + + scroll: css for #10722 + + embedded panel: hide side menu during init (#10788) + + org-switcher: should redirect to home page (#10782) + + graph panel: fix csv export (series as col) (#10769) + + docs: minor update + + docs: added graphite section + + fix: changed dashboard title length to match slug length, will fix mysql index size issue, fixes #10779 + + heatmap tooltip: minor refactor + + fix: error handling now displays page correctly, fixes #10777 + + fix: minor build fix + + fix: css fix, found a better way to fix #10772 + + build: fixed recovery test + + fix: removed old shortcut that does not exist, fixes #10802 + + fix: fixed bug with redirect after new dashboard saved, related to buggy angularjs location path/url and base href, fixes #10817 + + dashfolders: fixes #10820 + + fix: folder redirect after creation + + fix: initial fix for #10822 + + added width class to add member choose (#10835) + + Update logic for create/update dashboard, validation and plugin dashboard links (#10809) + + dashboard: fix delete of folder from folder settings tab. + + provisioning: fixed bug in saving dashboards. + + dashboard and folder search with permissions + + db test: allow use of env variable for database engine to run tests for + + user picker should only include users from current org (#10845) + + provisioning: delete dashboards before insert/update + + docs: updated docs landing page + + docs: minor docs update + + update README.md regarding running tests + + update README.md regarding running tests + + provisioning: avoid caching and use updated field from db + + provisioning: update sample config to use path + + provisioning: createWalkFn doesnt have to be attached to the filereader anymore + + provisioning: dont return error unless you want to cancel all operations + + fix: clear items list before fetching permissions list + + Fixes for graphite tags editor (#10861) + + permissions: might have a solution for search + + teams: use orgId in all team and team member operations (#10862) + + ux: minor tweak to grid resize handle color + + provisioning: better variable naming + + Fix #10823 (#10851) + + dashboard: always make sure dashboard exist in dashboard acl http api (#10856) + + docs: spelling. + + added buttons and text to empty dashboard list + + moved div in code + + login: fix broken reset password form (#10881) + + fixed bg gradient, fixes #10869 (#10875) + + new dashboard is now hidden from viewer, fixes #10815 (#10854) + + Minor typo fix + + provisioning: Warns the user when uid or title is re-used. (#10892) + + fix: sql search permissions filter fix + + fix: removed logging + + sass/base: import from current dir in _fonts.scss (#10894) + + add 13-24 for min width (#10891) + + Duplicate typo fixed + + ux: refactoring #10884 + + API Integration Tests via jest (#10899) + + provisioning: support camcelCase provisioning files + + provisioning: support camelcase for dashboards configs + + provisioning: adds logs about deprecated config format + + provisioning: code formating + + adds tests that validate that updated is correct + + sql: removes locale from test to mirror prod. + + provisioning: handle nil configs + + provisioing: always skip sample.yaml files + + bug: return correct err message + + Dashboard acl query fixes (#10909) + + add AWS/States Rekognition (#10890) + + improve error message for invalid/unknown datatypes (#10834) + + provisioning: uses unix epoch timestamps. (#10907) + + tests: makes sure we all migrations are working + + removes dependencies install for plugins + + tech: dont print error message on 500 page + + provisioning: adds setting to disable dashboard deletes + + updates readmes for mysql and postgres (#10913) + + dashboard: whitelist allowed chars for uid + + mark redirect_to cookie as http only + + Fix phantomjs legend rendering issue, #10526 + + fix: refactoring #10922 + + fix: more phantomjs fixes + + updated package.json version + + docs: Updated changelog + + updated download links + + chore: adds comment for exported function + + alert notifiers: better error messages. + + plugins: update meta data for all core plugins + + Minor typo fix + + Update ldap.md + + Update ldap.toml + + Update sample.ini + + repeat row: fix panels placement bug (#10932) + + Close modal with esc (#10929) + + migrate minSpan (#10924) + + Revert "removes dependencies install for plugins" + + cli: download latest dependency by default + + docker: add test dashboards for mysql and postgres for visualizing data generated by fake-data-gen + + teams: adds some validation to the API + + db: reduce name column size in dashboard_provisoning + + updated version to v5-beta3 + + refactoring: alert rule query refactoring (#10941) + + test: added integration test for #10941 + + docs: updated to beta3 + + Update CHANGELOG.md + + fix: esc key now closes panel edit/view mode as usual, fixes #10945 + + fix: fixed redirect after save, fixes #10946 + + login: uses epochs for login throtting. + + login: migration fix. + + Update CHANGELOG.md + + migrate panels in collapsed rows (#10948) + + changed m3 and dm3 to fixedUnit, fixes #10920 (#10944) + + [elasticsearch] Allow nested fields for annotation source (#10936) + + influxdb: escape backslashes in tag values (for alerting) + + Shouldn't be able to overwrite a dashboard if you don't have permissions (#10900) + + graph: added 0.5 point radius option + + build: updated build version to v5.0-beta4 + + Correct typo in DashboardInputMissingError + + docs: updated for changelog and docs with beta4 + + provisioning: dont ignore sample yaml files + + fix: alert history list now shows on graphs with manually added annotation events, fixes #10968 + + added an if to check for null to sort null as 0 (#10961) + + added scroll to org list modal (#10960) + + fix: plugin dashboard did not get plugin id after import + + fix: fixed github oauth login with allowed orgs filter, fixes #10964, reverts #10851 + + fix: fixes to signup flow, fixes #9816 + + dashboards: created date should be set when creating a folder/dashboard + + folders: new folder service for managing folders + + folders: use new folder service in folder api routes + + folders: basic integration tests for folders + + folders: fix api error mapping + + folders: folder permission api routes + + fix: added new known data source plugins, and minor migration fix for v1 dashboards + + dashboards: make fake dashboard guardian available to other packages + + folders: folder permissions api tests + + Fixes for heatmap panel in Grafana 5 (#10973) + + fix: scrollbar position now to max right pos, fixes #10982 + + folders: folder api tests + + dev: docker-compose setup for prom2. + + folders: extend folder service tests + + folders: fix typo + + dashboards: change api route for dashboard permissions + + folders: rename folder_acl in api to folder_permission + + fix typos in api, acl to permissions + + permissions: use updated api endpoint for dashboard permissions + + snapshots: change to snapshot list query + + folders: fix create folder in folder picker + + fix: elasticsearch terms size now allows custom values again, fixes #10124 + + dashboards: fix batch dashboard/folder delete response + + folders: use folder api for retrieving folder + + dashboards: cleanup + + Fix save as dashboard from folder to General folder (#10988) + + dashboards: created/updated and createdby/updatedby should be set before save + + Update ROADMAP.md + + Update ROADMAP.md + + snapshots: fixes cleanup of old snapshots + + dashboards: fix keyboard shortcut for remove panel + + dashboards: fix keyboard shortcut for expand/collapse rows + + dashboards: remove non-supported keyboard shortcuts for delete/collapse row + + feature for issue #9911 + + offer template variables for tags + + support [[variable:type]] syntax + + docs: fix type in datasource http api + + improve maintainability + + build: use tarball instead of git commit for tether drop + + yarn: update lock file with tarball change + + [doc] Fix extra alerting options in installation->configuration + + build: update to version 5.0.0-beta5 + + changelog: update for v5.0.0-beta5 + + docs: update to install pages for beta5 + + gave scroll-canvas-dashboard 100% height in kiosk-mode, fixes #11010 (#11017) + + fix: changed react-grid-layout to use grafana fork to a commit before https://github.com/STRML/react-grid-layout/commit/15503084fb7b0af826427c8c0706901e5745a39f, this fixes all the panel movement bugs, fixes #10831 + + grammar fix, add dir, and remove redundant info + + Alerting: Fix OK state doesn't show up in Microsoft Teams (#11032) + + dashboards: don't allow override of permissions with a lower precedence + + folders: handle new guardian error responses and add tests + + dashboards: handle new guardian error responses and update tests + + dashboards: change dashboard/folder permission error messages + + permissions: remove client validation and handle server validation + + dashboard: add permission check for diff api route + + permissions: fix validation of permissions before update + + login: hide sign up if configured so. Fixes #11041 + + Fix Github OAuth not working with private Organizations (#11028) + + build: updated version + +------------------------------------------------------------------- +Thu Feb 08 14:12:39 UTC 2018 - jfajerski@suse.com + +- Update to version 5.0.0beta1: + * build: increased version to beta1 + * fix: fixed permission list caching issue, fixes #10750 + * Stale permissions (#10768) + * adds unique index for org_id+folder_id+title on dashboards (#10766) + * docs: fix links in HTTP API Reference page + * dashboards: render correct link for folder when searching for dashboards (#10763) + * fix panel menu caret placement (#10759) + * permissions: fix link to folder from permissions list + * dashboard: fix loading of snapshot and scripted dashboard (#10755) + * changes to new urlformat for home dashboard (#10738) + * Update CHANGELOG.md + * fix: alert list links did not work, changed dashboardUri to Url, this is breaking api change in alert api (#10756) + * docs: typos and wording. + * ux: hide sidemenu in kiosk mode, and while playlist is playing, fixes #107402 + * dashboard: fix redirect of legacy dashboard url's + * docs: add spaces to timeseries example + * fix: restored tags to search + * fix frontend validation for creating new folder and import dashboard (#10737) + * docs: dashboard provisioning + * handle new error message + * removes uid when using 'save as' + * dashfolders: rename Root folder to General. Closes #10692 + * Light theme icon color (#10730) + * db: fix failing integration tests for mysql and postgresql + * Update search datasource by name API path + * fix for dashboard/folder url's when having a sub path in root_url config + * ux: added max width to dashboard settings views + * add gofmt as precommit hook + * dashfolders: adds test for permission store + * dashfolders: adds permission modal to dashboard settings + * register handler for get dashboards by slug + * make it easier for dashboards to generate ur; + * changes dashboard url in alertlist + * alert: use new url format + * Improve logging in the phantomjs renderer (#10697) + * route params from angular to view store should be updated on routeChangeSuccess + * repeat panel: process repeats when row is expanding (#10712) + * folders: changes needed due to merge + * docs: removed section with session table sql, that is not needed anymore + * ux: fix for responsive breakpoints and solo mode showing sidemenu + * docs: moved whats new article to master + * ux: fixed issue with zoom on graph caused scroll, fixes #10696 + * dashboard: refactor logic for retrieving url for folder/dashboard + * dashboards: update dashboard/folder url if browser url is not the same as from backend + * dashboards: when restoring a dashboard to an older version, set current uid + * dashboards: fix updating folder so that correct url is returned + * dashboards: remove slug property in dashboard search responses + * folders: change the front end route for browsing folders + * dashboards: add validation to delete dashboard by slug + * dashboards: new route for deleting dashboards by uid + * plugins: return table with empty rows array insteaf of nil + * retry uid generation + * fix: use replace when redirecting to new url + * ux: Change input width of UserPicker and TeamPicker in AddPermissions component #10676 + * viewstore: fix test after merge + * tests: Add TeamPicker test and update TeamPicker/UserPicker snapshots so they match the latest classNames update #10676 + * dashfolders: fix for folder picker + * ux: Add an optional className to the UserPicker and TeamPicker #10676 + * dashfolders: fixes #10671. Allow Editors default access to Root. + * docs: added redirect from old provision page, #10691 + * tests: Move tests from Permissions to AddPermissions #10676 + * tests: Update tests in PermissionsStore and rem out the Permissions-tests for now #10676 + * dashfolders: text change + * dashfolders: special case for folders in root + * gofmt... + * spelling + * Verifies requirement of id in dashboards. + * ux: POC - Update "Add permissions" design and add a fancy animation #10676 + * ensure dashboard title is unique in folder + * docs: Remove obsolete Ansible rule (#10689) + * docs: Fix outdated provisioning link (#10690) + * Renamed "Period" to "Min period" in CloudWatch query editor (#10665) + * created cta-bg variable and changed bg color on light theme (#10693) + * Repeat panels when row is expanding (#10679) + * dashboards: make scripted dashboards work using the old legacy urls + * dashboards: redirect from old url used to load dashboard to new url + * playlist: fixes #10254 + * dashboards: add new default frontend route for rendering a dashboard panel + * alerting: small refactoring + * dashfolders: POC - Use separate component for "Add permission" #10676 + * removes uniqnes check on slug when saving dashboards + * Drops unique index orgid_slug from dashboards. + * plugins: return empty tables array insteaf of nil + * url: fix for boolean querystring parameters + * moved icon (#10681) + * dashboards: fix links to recently viewed and starred dashboards + * dashboards: use new *url* prop from dashboard search for linking to dashboards + * dashboards: when saving dashboard redirect if url changes + * dashboards: add new default frontend route for loading a dashboard + * dashboards: return url in response to save dashboard. #7883 + * dashboards: ensure that uid is returned from getSaveModelClone + * alertlist: disable pause button when user does not have permission + * dashboards: revert adding api for retrieving uid by slug + * util: remove retry logic in shortid_generator + * dashboards: add url property to dashboard meta and search api responses + * dashboards: api for retrieving uid by slug. #7883 + * dashboards: add support for retrieving a dashboard by uid + * dashboard: change unique index for uid to include org_id + * dashboards: return uid in response to creating/updating a dashboard. #7883 + * dashboards: extract short uid generator to util package. #7883 + * dashboard: fix failing test. #7883 + * dashboard: generate and include uid in dashboard model. #7883 + * db: add migrations for creating a unique index for uid. #7883 + * db: add migrations for generating uid for existing dashboards. #7883 + * db: add new column uid to the dashboard table. #7883 + * moved icon (#10681) + * dashfolders: remove inline styles + * docs: fixed order of sidemenu + * test: fixes failing test in go1.10 + * docs: updated versions.json + * alerting: add permission check in api for pausing alerts + * dashfolders: adds comment for dashboard api tests + * docs: added versions file + * dashfolders: adds comment for dashboard acl test + * api: extract api test code to common_test.go + * repeat panel: minor refactor + * Fix horizontal panel repeat. Fix #10672. + * dashfolders: Add min-width to align icons in permissions list and some margin between icon and text #10275 + * ui: Fix Firefox align issue in dropdowns #10527 (#10662) + * fix: InfluxDB Query Editor and selecting template variable in where clause caused issue, fixes #10402, fixes #10663 + * dashfolders: link to folder for inherited permissions + * test: Update Tooltip test to check for className support + * fix: remove repeated rows when repeat was disabled. (#10653) + * test: Update Popover test to check for className support + * dashfolders: Get rid of unused import #10275 + * dashfolders: Use grafana's question mark instead of FA's and use the react tooltip instead of angular's #10275 + * dashfolders: Add className to Tooltip component + * fix: don't show manually hidden sidemenu after view mode toggle (#10659) + * dashfolders: css class as parameter for Picker + * dashfolders: select with description for permissions + * fix: show sidebar after mouse wheel scrolling (#10657) + * fix: tweak of PR #10635 + * ux: minor tweak of #10634 + * plugins: only set error if errorstring is not empty + * Revert "Fix typeahead to avoid generating new backend request on each keypress. (#10596)" + * dashfolders: add help popover. Add folder title for inherited permissions + * dashfolders: use react component for dashboard permissions + * replaced input with gf-form-dropdown + * reverted media queries + * graphite: fix nested alerting queries (#10633) + * fix for sm + * added media break for md and sm + * dashfolders: add disabled Admin permission to list + * tech: upgrade to golang 1.9.3 + * Locks down prometheus1 to v1.8.2 in live-test. + * fix typo in parameter. (#10613) + * dashfolders: autosave permissions on change (remove update button) + * changelog: move all 4.7 changes into 5.0 + * changelog: be more explicit about backwards compatibility + * WIP: Protect against brute force (frequent) login attempts (#10031) + * dashfolders: fix tests for ViewStore after merge + * Fix typeahead to avoid generating new backend request on each keypress. (#10596) + * fix vertical panel repeat (#10619) + * graph: fix series sorting issue (#10617) + * dashfolders: New snapshot since we changed from defaultValue to value per latest React documentation #10275 + * refactor: Replace _.find with Array.prototype.find() + * dashfolders: Convert mobx observable to js objects and remove the observer() since we want to use the component outside the react/mobx world #10275 + * dashfolders: Clean up more variables and move newType, aclTypes and permissionOptions to the store #10275 + * dashfolders: Remove variables not used and pass in the real dashboardId #10275 + * dashfolders: Remove those 2-line-components from PageHeader to make it easier to read and make sure components listening to the mobx state are wrapped with observer() #10275 + * dashfolders: Add support for breadcrumbs in NavStore #10275 + * dashfolders: Rename UserPicker folder => Picker. Inject the permission-store in the FolderPermissions-container instead of the Permissions component, add the PermissionsStore to the RootStore and and the error-message to the Permissions-store #10275 + * dashfolders: Add Permissions information box #10275 + * dashfolders: Fix page max width #10275 + * dashfolders: Update jest tests with backendSrv #10275 + * dashfolders: Add a Team Picker component and use it on the dashboard permissions page #10275 + * dashfolders: Working user picker on the dashboard permissions page #10275 + * dashfolders: Send down backendSrv to the react components #10275 + * dashfolders: Re-use the API of the angular user picker instead, which is reusable #10275 + * dashfolders: Remove the PermissionsInner-strategy since we have a container for this route now #10275 + * dashfolders: Permissions are injected via MST so it needs to be defined as optional #10275 + * dashfolders: Add FolderPermissions container and make sure isFolder is passed to PermissionsStore #10275 + * dashfolders: Always get dashboardid and backendsrv from props #10275 + * dashfolders: Rem code to avoid tests to fail #10275 + * wip: More on the permissions. Left are team picker and user picker, tests and error messages #10275 + * fix: mobx-react-devtools is a dev dependancy #10275 + * dashfolder: wip: More wip on acl.html2permissions.tsx #10275 + * dashfolders: wip - Move Permissions into React #10275 + * variables: lint fix + * variables: fix when datasource returns error + * fixes broken phantomjs rendering + * added varibale to table hover, lightend colors for table light theme, fixes #10609 (#10611) + * fixes minor typo + * provsioning: dont stop grafana due to missing + * Disable prefix and postfix font size when gauge mode is enabled (#10573) + * docs: improve docs for image uploaders + * cfg: remove local as default image uploader + * docs: Add haproxy example for running behind reverse-proxy + * Cloudwatch: add support for multi instances (#10570) + * ux: minor change, added import dashboard link to dashboard search side view + * tech: adds/removes in vendor folder according to dep 0.4.0. + * docker: sync local time and timezone to mysql_tests block + * dashfolder: fix for sqlite test + * dashfolder: fix for mysql test + * mysql: pin the mysql dependency + * tech: ignore /public and /node_modules + * tech: ignore /data folder for dep + * plugins: map error property on query result + * stats: send amount of stars as stats + * tech: avoid using deprecated functions + * style: minor code style changes + * refactor: minor css class naming change of #10505 + * refactor: minor refactoring of PR #10560 + * cloudwatch: fix ebs_volume_ids by create a client-session before call ec2:DescribeInstances. (#10566) + * docker: use mysql and postgres from latest fake-data-gen + * Update OpsGenie Notifier to support different api domains. + * 10583 panel resize icon fix (#10585) + * dashboards: Fix issue with first click when expanding folder in search + * cfg: adds info about local img uploader to docs + * docs: adds info about local img uploader + * changelog: adds note about closing #6922 + * changelog: note about closing #9664 + * changelog: adds note about closing #9770 + * Disable instead of hide mode options when line/points is unchecked + * dashfolders: show folders use can save to in picker + * dashfolders: fix bug in save as modal + * Add lumens unit + * add docs for configuring OAuth with Auth0 and Azure AD + * install dep instead of govendor on setup + * remove unused code from vendor + * migrate from govendor to dep + * fix: cloudwatch corrected error handling so original error is not thrown away + * go fmt + * support for decoding JWT id tokens + * ds: updated ds nav + * feat: ds edit fix + * feat: ds edit nav + * Generic Oauth Support for ADFS (#9242) + * Recommend a limit on database query + * Adjusted the border color on the buttons in dashboard nav, fixed alert email text area width, fixed padding-top issue on dashboard settings aside + * dashfolders: stop user locking themselves out of a folder + * dashfolders: add breadcrumbs to NavStore + * mysql: convert numbers to text for annotation tooltip + * mysql: update to use ColumnTypes interface in new version + * mysql: update mysql driver to latest master + * gofmt my dear friend + * ux: updated react-layout-grid + * plugins: send secureJsonData unencrypted + * Make file_reader follow symlinks + * dashboards as cfg: property path replaces folder + * moves datasource plugin model to grafana/grafana_plugin_model + * Update package.json + * fix: fixed build issue + * fix: multi valued query variables did not work correctly, fixes #10539 + * move graphite /functions parsing into gfunc.ts + * remove duplicate sass rules + * fix tests & some display issues + * fix: graphite func editor fixes, this component is messy and ugly as hell + * fix: minor fixes + * fix: restored previous behavior of form_dropdown, this fixes all my observerd bugs with the dropdown behavior + * fix: query editor needs to wait for function definitions to load + * fix issue with metric find & functions being loaded multiple times + * interpolate variables in tags & values during autocomplete + * fix typo + * update rst2html + * fix line length, run jscs & jshint in precommit + * function description formatting + * tooltips for function definitions + * support specifying tag_values("") as graphite template query + * use typeahead value in graphite find requests + * send prefix when auto-completing tags + * add button to trigger evaluation of tag queries + * sync function categories with graphite-web + * work on tag dropdown behavior + * support for loading function definitions from graphite + * Update building_from_source.md + * Update README.md + * Update default_task.js + * Clearer naming for dashboard provisioning config. + * ux: dashboard nav and settings tweaks + * Tag filters in search (#10521) + * fix: save as enter key now works and folder selection also works, fixes #10464 + * use context over golang.org/x/net/context + * docs: small update to IIS proxy docs + * added a variable for grid color and if statment to switch colors, fixes #10509 (#10517) + * dashboards as cfg: logs error when trying to import dashboard with id + * code style fixes + * dashfolders: bugfix after rename + * dashfolders: bugfix after rename + * Adds Table in backend datasource contract. + * fix: share snapshot controller was missing ngInject comment, fixes #10511 + * Use URLEncoding instead of StdEncoding to be sure state value will be corectly decoded (#10512) + * Optimize metrics and notifications docs + * Optimize cli and provisioning docs + * imguploader: Add support for new internal image store (#6922) + * docs: Guide for IIS reverse proxy + * changelog: adds note about closing #9645 + * telegram: Send notifications with an inline image + * telegram: Switch to using multipart form rather than JSON as a body + * telegram: Fix a typo in variable name + * dashfolder: refactor breadcrumbs in PageHeader + * dashfolders: convert folder settings to React + * Adds Tables types to protobuf + * fix: alert list pause/start toggle was not working properly + * fix template variable selector overlap by the panel (#10493) + * Review tsdb protobuf contract + * dashboard: Close/hide 'Add Panel' before saving a dashboard (#10482) + * supports windows compatible plugin binaries + * fix: removed unused param + * Fix variables values passing when both repeat rows and panels is used (#10488) + * moved angular-mocks out of dependencies + * ux: minor change to alert list page + * ux: minor word change to alert list + * fix: updated snapshot test + * moves plugin proxy to plugin package + * Add eu-west-3 in cloudwatch datasource default's region (#10477) + * fix: Make sure orig files are not added to git again #10289 + * improves name for plugin logger + * fix: Remove conflict file #10289 + * text panel: fix $apply already in progress error (#10486) + * uses pluginmanagers log instead of global + * 10389 react tooltip components (#10473) + * test: Updated snapshot for UserPicker jest test #10289 + * ux: When adding a new panel we should scroll to top until we figure o… (#10417) + * removes commented code + * naming fixes and added test file + * makes datasource handshake more explicit + * backend plugins: improves logging + * dashfolders: show/hide create folder or dashboard buttons + * dashfolders: fix mergeconflict error + * dashfolders: prettify + * dashfolders: check permissions for new dashboard + * dashfolders: allow any signed in user to get list of teams + * fix gofmt warning + * dashfolders: permissions for saving annotations + * dashfolders: disable save button after save of acl + * dashfolders: on folder page, hide tabs if not has admin permission + * dashfolders: remove role requirements on dashboard routes + * dashfolders: must have admin permission to save/see dash acl + * dashfolders: prettify on tests file + * dashfolders: permissions tab in dashboard settings + * dashfolders: permissions tab for dashboard folders + * fix for unsaved changes popup on tab close/refresh + * fix: Clean up logging and remove unused css #10289 + * fix: Rename directive user-pickerr (yes two r's) to select-user-picker + * fix: Accidently added the conflict files (#10289) + * test: Add snapshot tests for UserPicker and UserPickerOption (#10289) + * fix: Add interface for props to UserPickerOption (#10289) + * ux: POC on new select box for the user picker (#10289) + * dashboard: fix opening links in new tab (#10465) + * alert list: fix rendering timeout when share panel (#10467) + * fix missing profile icon (#10469) + * More fixes for relative urls when running Grafana under a different sub path (#10470) + * put this.props.search in the Highlighter + * moved state handling for search to store + * Delete CopyQuery.png + * Delete tgr288gear_line6.pdf + * fix: added back colors to rootScope, fixes #10462 + * fixed the subUrl bugs from https://community.grafana.com/t/suburl-not-work-at-some-links-and-buttons/4701 with folder/settings/teams etc. + * Fix typo in error message + * updated snapshot + * styling fix + * added highlight to search + * Updates go-stack to v1.7.0. + * docs: adds note about tlsSkipVerify to docs + * fixed regex issue + * made a view of filtered list + * updated jest file and snapshot + * plugin: fix path for app plugins on windows + * added search function + * new styling and markup + * cleanup: removed unused typescript typings import + * new add alert notification channel icon + * mobx: poc in using each store as individual prop on the react containers (#10414) + * fix: Change max size of panel JSON editor so button is shown on smaller screens, #10346 (#10415) + * Add AWS/AmazonMQ namespace metrics to CloudWatch tsdb (#10407) + * add docs for using oauth login with OneLogin (#10385) + * added empty list cta to notification channels, fixes 10393 (#10400) + * mobx: fixed issue with view store, and added missing snapshot + * tech: enzyme container test working + * tech: enzyme container test working + * react: trying to get enzyme and mobx tests working + * tech: url and query mobx store so now react components and containers can read and modify url path and query via mobx store + * tech: alert list react migration progress + * fix info popover, #10302 (#10377) + * fix move dashboard variables, #10347 (#10375) + * dashfolders: relative links should work when root_path is specified (#10363) + * fix mixed datasource add query button, #10316 (#10361) + * tech: react mobx progress + * Doc version and schemaVersion properties of dashboards + * tech: began reworking alerting list to mobx + * tech: progress on react pages + * prom: fixes broken test + * prom: make $__$interval the first suggested range vector + * fixes log typo + * imguploader: log if the configuration is invalid + * changelog: adds note about closing #8955 + * renderer: avoid calling Handle twice + * dashboards as cfg: moves dashcash into its own file + * dashboards as cfg: create dashboard folders if missing + * fixed error + * tests: for skipping with hidden folders + * Implement Azure Blob external image uploader + * migrated datasource to ts + * tech: minor progress on mobx state tree & react containers, working on unit testing + * Fix tooltip unit when legend isn't shown (#10348) + * refactor: minor refactoring of PR #10236 + * don't save dashboard on make editable, #10236 + * fix scripted dashboard loader, #10350 (#10351) + * new aws region cn-northwest-1 (#10353) + * Dashboard: View JSON improvements (#10327) + * refactor: tried to simplify and also minimize scope a bit for #10323 + * ignore trailing whitespace (#10344) + * (prometheus) show label name in paren after by/without/on/ignoring/group_left/group_right + * dont spawn new subprocess while shutting down + * Fix small singlestat value display + * fix: fixed issue with optimized build, fixes #10333 + * migrated file to ts (#10328) + * plugins: restart killed plugins + * query result should be a map + * prom: removes limitation of one query per tsdb call + * changelog: adds note about closing #10222 + * pagerduty: fixes invalid default value + * fix: remove unused code + * dashboard: copy panel to clipboard + * pagerduty: adds test for reading auto resolve setting + * code formatting fix + * migrated files to ts + fixed specfile + * tech: cleaned up unused stuff + * ux: removed unused stuff form style guide + * prettier: ran on all files again, sorry. now settings are defined in package.json + * tech: mobx tests + * Add avatar to team and team members page (#10305) + * Various dashboard folders improvements (#10309) + * mobx: progress on poc + * test for plugin path builder + * merge backend datasources and datasources + * use int64 for timestamps + * fixes invalid valud/timestamp order + * fix: unit test fixed + * prettier: change to single quoting + * ux: minor name change to search sections + * db: fix postgres regression when comparing boolean columns/values (#10303) + * dashboard: delete row improvements + * poc: mobx test + * fix missing comma in documentation output example + * fix broken link (#10291) + * minor fixes and formatting after review + * dashfolders: use validation service for folder creation and dashboard import. #10197 + * dashfolders: support creating new folder when moving dashboards. #10197 + * dashfolders: support creating new folder when saving a dashboard. #10197 + * dashfolders: support creating new folder in dashboard settings. #10197 + * dashfolders: support creating new folder from the folder picker. #10197 + * poc: mobx poc + * tech: ran prettier on all scss files + * tech: ran pretttier on all typescript files + * search: closes dash search when selecting current dashboard (#10285) + * fix: Original dashboard link from snapshot should be an a-tag, not a button (#10269) (#10283) + * dashboard: fixes #10262 + * added new to new dahsboard and folder + * test: Update test with new component signature + * pushover: update default message + * delete unused icon files + * fix: The /logout route should always full page reload (#10277) + * tech: added prettier to precommit + * ux: Add icon to selected option in PageHeader navigation on small screens, update select boxes for Firefox so the arrow to the right is aligned with the other select boxes (#10190) + * ux: Fix color picker positioning when scrolled down to the bottom of a page (#10258) (#10271) + * test: remove unused code + * alerting: make alert extractor backwards compatible + * alerting: move test json into files + * Use strings.TrimPrefix to make sure relative url doesn't start with forward slash + * Update README.md + * Update CHANGELOG.md + * fix: Navigation on small screens when Grafana is installed in a sub directory (#10252) (#10261) + * cloudwatch: fixed optimized build issue, fixes #10174 + * fix text panel rows limit (#10246) + * use ace editor in panel edit (#10245) + * docs: mysql example with macro + * docs: mysql macros update + * fix: reduced team name column length, fixes #10244 + * ux: Add missing icon for login with grafana-com, fixes #10238 (#10249) + * Kinesis Metric Capitalization + * merge backend-datasource and datasource type + * dashfolder: nginject fix + * teams: missing nginject attribute + * grid: disable resize and drag on non editable dashboards, closes #10235 + * logging: removed logging from panel loader + * menu: fixed create default url + * fix: dont show settings for viewers + * prometheus: change default resolution to 1/1 + * fix: viewers can edit now works correctly + * fix: fixed minor ux and firefox issues, fixes #10228 + * ux: minor fixes + * profile: use name or fallback for profile page + * fix: sidemenu profile main text is now username instead of name + * build: update master version to 5.0.0-pre1 + * dashfolder: change to migration text + * ux:s sidemenu icon rules + * teams: add team count when searching for team + * changed background color for infobox and new blues in light theme, light theme now uses blue-dark in panel query (#10211) + * ux: fixed navbar issue when sidemenu closes + * ux: minor position change for layout selector, fixes #10217 + * fix: view json from share modal now works, #10217 + * ux: used new add data sources icon + * dashfolders: styling of selected filters + * dashfolders: styling of selected filters + * dashfolders: fix moving plugin dashboard to folder + * changelog: adds note about closing #9170 + * dashfolders: fix folder selection dropdown in dashboard settings + * fix for merge conflict + * add links for large cta + * resolve merge conflict + * dashfolders: bulk move/delete improvements + * snapshots: fixed snapshot issues, fixes #10214 + * docs: include all notifiers type + * replaced old table with filter-table, removed edit button, made whole rows to links + * playlist: fixed playlist buttons in dashboard header, fixes #10213 + * Update CHANGELOG.md + * Update CHANGELOG.md + * docs: update latest version to 4.6.3 + * ux: minor changes to search input + * Magnifying glass on search fields #10188 (#10206) + * templating: made templateSrv globally accessable as ES6 module, DashboardRow can not interpolate row title + * fix: ignore row clones in schema migration + * proxyds: delete cookies except those listed in keepCookies + * dshttpsettings: Move whitelisted cookies to end of config page + * proxyds: failing test for keepCookies + * dshttpsettings: add field for cookies that should be kept + * dashfolders: /dashboards should render index page with a 200 OK + * update version for packagecloud + * dashfolders: bulk move/delete improvements + * add release date for 4.6.3 + * fix: after removed file + * dashfolder: fix after backendSrv change + * dashboard: fix test after merge conflict + * orgswitcher: update test + * Avoid ID validation before provisioning dashboards + * annotation icon fix + * udpate dark json icon + * dashboard settings icons + * replace icon on dashboard list (fa-th-large - looked squished) with a smaller version of dashbord icon. This may not be the best way to do the css, so it's a separate commit + * new icons created and added to nav + * changelog: adds note about closing #7481 + * fixes broken unit test + * alertmanager: endAt should only be used if we have the correct value + * alertmanager: code style + * alerting: reduce log level for notifiers + * Alertmanager notifier: add "metric" labels if no tags + * Alertmanager notifier: make it match the new notifier interface + * support alertmanager + * Replace Read Only Editor role with ViewersCanEdit setting (#10166) + * dashfolders: bulk move dashboards synchronously + * dashfolders: remove error message when moving to the same folder. #10135 + * teams: Fixes to edit team page + * ux: minor text change to #10177 + * made template link look like input (#10198) + * minor tweaks + * execute process directly instead of creating sub shell + * Dashboard grid fixes (#10194) + * refactor: minor change to #10199 + * fix broken 'd r' shortcut (refresh dashboard) (#10199) + * ux: updated login page + * fixes switching org when url contains orgId querystring param + * build: fixed build issue + * ux: refactoring login page change + * navmodel: fix for signout link on pref page + * change protip to go to manage dashboards + * search: worked on search results + * added select-wrapper to where it was missing for unified look + * changelog: adds note about closing #10151 + * ux: wip - Login animation POC (#9879) + * changelog: adds note about closing #9318 + * ux: Move "Sign up" and "Reset password" to its own pages - and remove all inline styling (#9879) + * fixes broken alert eval when first condition is using OR + * ux: org user management changes + * removes unused property + * fixed edit team header, fixes #10172 + * changed width to input fields (#10184) + * ux: added search box to ds list page, closes #10106 + * ux: change members to users + * plugins: fixed plugin edit page and plugin page + * dashfolders: Minor css fixes for bulk edit + * dashfolders: Minor css fixes for bulk edit + * docs: SSL Mode config settings for Postgres + * dashfolder: settings page for folder + * removes verbose logging + * fix: FolderId and IsFolder when saving dashboard + * ux: fixed inactive view mode and removed animation + * removed unused declaration + * updated dashlink editor, now has list + * fix: Handle state when no password is entered on registration page (#9879) + * ux: move add member into its own page (#10167) + * Add a per-notifier ShouldNotify() + * minor fix for #10136 + * Fix graph legend scroll (#10169) + * fix colorpicker colors order (width issue) (#10170) + * graphite: remove check so that query is sent even for possible non leaf nodes + * fix: fixed build failure + * ux: Use the previously renamed classes (#9879) + * fix: fixed dashboard api tests + * fix: don't detect graphite version before it's saved + * updated new dashboard folder + * ux: style tweaks + * ux: Update ui of login buttons via third parties and add link to sign up page (#9879) + * redesigning links editor + * ux: search look update + * tech: updated version for react-grid item + * build: fixed unit test failure + * Extracted row matching function and added comments + * allow overriding dashboards from api + * redesigning links editor + * graphite: minor fix for PR #10142 the query was being sent for every segmen t you selected before you completed the metric path + * build: fixed broken test + * refactor: minor change to panel json fix PR #10156 + * Move panel JSON editor to modal dialog (#10156) + * ux: minor updates to dashboard settings + * ux: dashboard settings updated + * new dashboard and folder in search (#10152) + * avatar: avoid concurrent map writes + * redesign dashlinks + * fix: fixed issue with optimized build grid directive missing ngInject comment, fixes #10161 + * Add default message for Pushover notifications + * refactor: format files by gofmt + * ux: Adjust margins when external auth providers are enabled (#9879) + * ux: dashboard settings progress + * ux: dashboard settings work progress + * dashfolders: new dashboard with folder selected + * ux: wip - Push pixels for new login, remove inline styling, change so we use media queries using min-width instead of max-width and make sure it looks ok across all screen sizes (#9879) + * ux: dashboard settings work progress + * backend plugins: manage plugins lifecycle with context + * ux: dashboard settings progress + * ux: dashboard settings progress + * ux: dashboard settings progress + * backend plugins: dont swallow errors + * fix: fixed failing test + * backend plugins: cleanup protobuf files + * ux: dashboard settings progress + * backend plugins: add more datasource params + * Type-agnostic row merge in table transform for multiple queries + * ux: dashboard settings progress + * ux: fixed navbar and sidemenu z-index issue and improved responsive rules + * code style + * implement upstream changes + * fix: fixed build failure + * changelog: adds note about closing #10131 + * Explicitly specify default region in CloudWatch datasource (#9440) + * add encoding param + * wait for all sub routines to finish + * fix function re-ordering broken in #9436 + * hyphenhyphen + * support metric trees of varying depth, never send '.select metric' to graphite + * simplify function parameter addition + * ux: dashboard settings progress + * ux: minor changes + * ux: navbar progress + * improve handling of query references + * build: fix for tslint + * ux: form styles polish, improvement but can be better + * demonstrate parseTarget issue + * fix: fixed panel size rerendering issues + * ux: work on dashboard settings views + * dashfolders: Do not allow loading a folder as a dashboard + * fix: Remove console.log + * dashfolders: Folder picker should set correct default values. Fixes #10135 + * refactor: user groups to teams, replace rest mentions + * refactor: user groups to teams, rename backend files + * refactor: user groups to teams, rename frontend files + * refactor: rename User Groups to Teams + * changelog: adds ntoe about closing #10111 + * ux: forms style font size change + * ux: dashboard settings progress + * postgres: change $__timeGroup macro to include "AS time" column alias (#10119) + * new timepicker is working + * dashfolders: Create nav model for folder page client side #10083 + * ux: minor change to new folder page + * fix for search dropdown on small screen + icon overlapping fix (#10091) + * ux: added react scrollbar component and added it to add panel panel + * tech: updated ngreact and with custom PR applied + * refactoring: #10130 + * Revert "Don't animate panels on initial render (#10130)" + * Don't animate panels on initial render (#10130) + * refactoring: fixing bug when all values are null + * fixes broken test + * dashfolders: Hide search input area when showing CTA. #10083 + * ux: graph legend refactoring + * improve error handling for datasources as cfg + * improve sample datasource.yaml + * make gitignore more generic + * grid css transforms: minor refactor (#10128) + * dashboard grid: enable CSS transforms (#10125) + * fixes issue with datasource/dash as cfg and gitignore + * refactoring: changing how graph height and legend height is calculated, using flex box seems to actually work, #10079 + * dashfolders: create folder page + * refactor: removed graph height from legend decimal calc + * dashfolders: css fix + * fixes failing tests + * dashfolders: New Dashboard Folder page + * fix: move components tests to specs folder + * Fix go fmt + * kill plugin processes when grafana shuts down + * fix: v5 sidemenu & link to shortcuts now works, fixes #10087 + * separate plugin impl and proto files + * correct comments + * add hclog wrapper for grafanas logger in plugins + * add go-plugin deps to vendor + * initial version of proto files + * changelog: breaking regardless what your running + * changelog: better styling + * removes last pieces of dashboard.json + * refactor: sidemenu toggle & hiding logic + * changelog: note about closing #5269 and #9654 + * dashboards as cfg: update docs to use /provisioning + * dashboards as cfg: move dash/ds config files to /provisioning/* + * dashboards as cfg: copy dash/ds files if missing + * dashboards as cfg: include cfg files in dist packages + * dashboards as cfg: avoid walking fs in parallel + * dashboards as cfg: type + * dashboards as cfg: disable loading dashboards from disk by default + * dashboards as cfg: wire up dashboard repo + * dashboards as cfg: use gocache for caching + * dashboards as cfg: expose dashboard service as interface + * dashboards as cfg: move saving logic for dashboards into its own service + * dashboards as cfg: revert minor changes + * dashboards as cfg: move dashboard saving into its own service + * dashboards as cfg: minor tweaks + * dashboards as cfg: make dashboard none editable by default + * dashboards as cfg: more tests + * dashboards as cfg: code cleanup + * dashboards as cfg: read first cfg version + * removed row to center footer (#10115) + * ux: minor cleanup + * mysql: pass timerange for template variable queries (#10071) + * dashboard: fix edge case with keyboard nav in dashboard search. #10100 + * Solves problem with Github authentication restriction by organization membership when the organization's access policy is set to "Access restricted". "Access restricted" policy should not stop user to authenticate. + * graph: fix legend height calculation + * postgres: pass timerange for template variable queries (#10069) + * graph: move auto decimals calc to ticks.ts and use it for legend values format. + * Resolves grafana/grafana:#9309 + * dashboard: fix linting and formating - #10100 + * dashboard: keyboard nav in dashboard search - closes #10100 + * graph: refactor (don't render twice) + * handle native postgres datetime types in annotation queries (#9986) + * treat any text column in timeseries query as metric name unless column (#9985) + * Fixing tabs for Grafana 5 - #10082 (#10103) + * other panels now hidden, fixes 10088 (#10102) + * fixed 404 for grafana5 + now responsive (#10101) + * dashboard: fix search results tests #10083 + * dashboard: Show CTA for empty lists/folders #10083 + * dashboard: Dashboard folder page wip #10083 + * prom: enable min interval per panel + * Fix merge issue on multi-query table transforms + * graph: fix karma tests + * graph: render legend before graph + * added tooltip, fixes #10092 (#10097) + * graph: refactor + * graph: convert legend.js to typescript + * docs: link from cfg page to provisioning + * reduce app icon by 3px on home dashboard - wasn't lining up properly with starred/recently viewed dasboard list properly + * ux: minor style tweaks to cards and sidemenu icons for white theme + * ux: tweaked light theme and made page container more fluid + * dashboard: dashboard search results component. closes #10080 + * docs: added utm_source for link from ds list page to docs page + * fixed grey colors in light-theme, added new variables, played a bit with blue + * v5: removed permissions from dashboard cog dropdown, closes #10068 + * nav: updated nav item id for manage dashboards + * refactoring PR #10068 + * dashboard: migrations for repeat rows (#10070) + * Backwards-compat for multi-query table transform + * graph: make legend scrollable + * removes unused properties + * Making the multi-query table transform the default table transform + * ux: updated padding + * ux: Add CTA for empty lists + * move import menu item to the original place + * move DashboardImportCtrl tests to jest + * Move import dashboard from modal to the page + * refactor: minor refactoring of #10027 + * new grays for light theme + * sidemenu: responsive sidemenu view for smallest breakpoint + * ux: tabs update + * Tests for multi-query table transform + * ux: updated modal header design + * ux: progress on time picker dropdown version + * fix templating undefined error (#10004) + * tweaks to add panel panels + * ux: updated dashboard nav + * ux: dashboard setings progres + * add Cloud Alchemy Ansible role + * started on dashboard settings refactor + * ux: add new panel and dash nav improvements + * Added basic table transformer test + * typo :boom: + * influxdb: pass tags to alerting from influxdb client + * ux: dashboard nav update + * ux: new dashnav design + * ignore /conf/**/custom.yaml files + * repeat row: refactor + * Fix dashboard menu overlapping (#10044) + * Add multiquery_table table transform + * typo :boom: + * move systemd ready notification to server.go + * changelog: adds note about closing #10024 + * page header now on 99% of pages + * navigation: more progress on new page header + * ux: new page-header design, most pages beside admin done + * fixed sass warnings + * ux: made plugins page work + * Use systemd notification where applicable + * progress on page header + * tweaked color on heatmap. still not there, but more vibrant + * ux: new page header progress + * added bundled dashboards + * ux: progress on new page header + * dashboard: when changing route, scroll to top + * grafana-10039: fix query time range ends in the past + * ux: work on page header + * Revert "prometheus nested query support" + * ux: updating header design for pages + * fix: when navigating, scroll to top + * repeat row: add more tests + * ux: new page header design + * tweak background size + * new test svg background, minor form tweaks + * ux: search filter box + * ux: changed body default font size to 13px + * test: fix failing postgres test + * Added border radius and tightened up the folder boxes. Still needs to have the bottom margin expanded to 8px when in opened state (this needs @torkelo) + * test: speedup mysql and postgres integration tests by 10-20x + * repeat row: expose scopedVars to row panels + * ux: search design update + * repeat row: handle collapsed rows + * notifier: Fixes path for uploaded image for Slack notifier + * formatting in build file + * dashboard: initial repeat row implementation + * prometheus nested query support + * fix render http[get] params error + * test: close file before deleting + * Restore Page Footer after migration to new scrollbar #9652 + * export view json now templatized, fixes #10001 + * dashfolders: Add a helper for creating a dashboard folder + * dashfolders: revert automatic creation of folders for plugins + * styling changes for light theme + * grid: use single column layout for mobile devices (#9999) + * fix panel solo mode (#10002) + * dashlist: handle recent dashboards removed from backend + * dashfolders: don't create app folder on dashboard import if already exists + * dashfolders: create app folder on dashboard import + * datasource: fix merge conflict - restore dashboards tab + * search fix and update buttons on dashboard list page + * fix: removed table background + * build: fixed lint issue + * fixed link i specs-file + * Improve dashboard grid layout migration WIP (#9943) + * test fix + * updated libs and fixed new typescript errors + * dashlist: Support for clear all filters + * migrated viewstatesrv to ts + * added yarn.lock file back + * ux: table design work + * panel: open panel menu by click on header + * ux: search progress + * worked on search + * migrated four files from js to ts + * migrated four files to ts, addd some code to config to make it work (#9980) + * Update NOTICE.md + * Update LICENSE.md + * ux breadcrumb work + * ux: sass fixes and polish + * dashlist: Support for check/uncheck all + * Migrate gfunc to ts (#9973) + * migrated admin files to ts (#9975) + * migration of org files from js to ts (#9974) + * sass tweaks + * dashlist: When searching should reset checked state to false + * More js to ts (#9966) + * dashlist: change scrollbar to new perfect scroll directive + * docs: Improve delete snapshot documentation + * ux: fixed sass issue + * sass refactoring and updating styles for list item elements + * dashlist: style list to be same as dash search + * css tweaks and cleanup + * removing gemini scrollbar and replacing with perfect scrollbar, muuuch better + * dashlist: starred filter search + * ux: tweaked panel color and dashboard background is same as page background + * removed call to unused function in panel_ctrl + * scrollable panels works better with perfect-scrollbar + * Update latest.json + * Optimized number of lines fetching in log file initialisation + * work on scrollable panels + * converted 3 .js files to .ts (#9958) + * docs: adds docs for pausing all alerts + * Removing file that got committed by accident + * scrollable panels: fix initial content size (#9960) + * Delete LICENSE.txt + * dashlist: adds tag filter select (GitHub style) + * [GCS] Support for gcs path + * dashlist: toggle folders + * dashboard: fix test for folderIds + * allows head requests for /api/health endpoint + * dashlist: fix tag filtering and some css + * fix: fixed issue with metric segment introduced in graphite tags query editor PR + * progress on scrollable panels work + * mysql: add data source support for Azure MySql + * fixed unit tests + * fix: alert list panel now works correctly after adding manual annotation on dashboard, fixes #9951 + * Elasticsearch max_concurrent_shard_requests parameter for es 5.6+ + * prom: add prom2 dashboard as bundled dashboard + * show top 5 max scrape durations by job, and fix legend format + * fix scrape duration, add rule eval iteration stats, and reorg a bit + * fix data source var and remove node_exporter dependency + * First draft of a Prometheus 2.0 Stats dashboard + * prom: initial docker block for prometheus 2 + * tweak tabs: + * color fix + * make grays cooler + * dashlist: started fixing js/css after design changes + * updated search + * more work on search + * minor update to dashboard search + * converted test-files to jest + * improved search srv + * converted influx-series to TS, converted test to jest + * dashboard search + * working on dashboard search + * Move the loading flag to PanelCtrl (#9929) + * graph: disable zoom in non-timeseries modes (#9914) + * changed padding to pixels, fixes #9916 (#9924) + * Use correct moments format for Showing last us time instead of value test (#9923) + * Don't import JSON dashboards from hidden directories. + * new design for login + * fix: build & tests + * search: add expanded folders + * influxdb: another minor refactor of #9474 + * refactor: refactoring InfluxDB query builder with policy PR #9473 + * refactor: refactoring InfluxDB query builder with policy PR #9473 + * docs: added versions_to_keep to config docs, #9671 + * Update CHANGELOG.md + * refactoring: minor refactor of clean up dashboard history PR #9882 + * Update CHANGELOG.md + * Update CHANGELOG.md + * fix: fix for avatar images when gzip is turned on, fixes #5952 + * elasticsearch: default version to 5.x + * panels: add css tweaks for scrollable panels + * dashboard history clean up: avoid potential SQL injections + * search: refactor search sql into a builder class + * changelog: note about closing #9798 + * removes invalid comment + * api: fix so that datasources functions returns Response + * changelog: note about closing #1789 + * fix: Use Response as return type + * fix: return id from api when creating new annotation/graphite annotation, fixes #9798 + * datasources as cfg: adds docs for all jsondata and secure_json fields + * graphite: minor changes + * text panel: make scrollable + * panels: general property which makes panel scrollable + * datasources as cfg: convert yaml map into json for jsonData + * fix: fix cloudwatch metricFindQuery error that stopped it working completely, fixes #9876 + * dashlist: css adjustments for scrollbar + * dashlist: fix resizing after mode switching + * dashlist: add scrollbar + * dashlist: fix panel resizing + * docs: release 4.6.2 + * docs: update metrics api path + * changelog: adds note about closing #1871 + * fixes: #1871 Dropdown starred (#9490) + * dont loose subsecond precision when dealing with timestamp or (#9851) + * graphite: progress on new query editor + * datasource as cfg: fixes typos + * docs: format cfg mgt tools as table + * docs: adds more info about provisioning + * datasource as cfg: update docs to include globbig + * datasource as cfg: show deletes first in example + * datasource as cfg: support globbing + * datasource as cfg: enable editable ds's + * datasource as cfg: add org_id to example config + * tweak docs + * datasource as cfg: adds readonly datasources + * datasource as cfg: refactor to use bus + * datasource as cfg: test for reading all properties + * datasource as cfg: adds provisioning docs + * datasource as cfg: rename feature to provisioning + * datasource as cfg: improve name for this feature + * datasource as cfg: refactor tests to use yaml files + * datasource as cfg: ignore datasource all ready exist for inserts + * datasource as cfg: add support for securedata field + * datasource as cfg: setting for purging datasources not in cfg + * datasources as cfg: tests for insert/updating datasources + * datasource as cfg: basic implementation + * More energy units (#9743) + * Add feet to the length menu (#9889) + * middleware: recovery handles panics in all handlers + * sql: small fix to error handling + * graphite: progress on new query editor + * changelog: make prom fixes more explicit + * dashboard history clean up: add tests + * tech: ignore debug.test file created by VS Code + * dashboard history: refactor after review + * changelog: adds note about closing #9777 + * prom: add support for default step param (#9866) + * properly escape components of connection string (#9850) + * refactor: changed string slicing to strings.TrimPrefix, #9862 + * dashboard history: clean up dashboard version history + * build: fixed jshint error + * sync documentation, add remark about to_timestamp and redshift (#9841) + * Update CHANGELOG.md + * fix: Html escaping caused issue in InfluxDB query editor, could not pick greater than or less then operators, fixes #9871 + * changelog: adds note about closing #8523 + * teams: removes print statement + * Add Microsoft Teams notifier + * docs: update building from source doc with node-gyp + * Update CHANGELOG.md + * heatmap: fix tooltip in "Time series bucket" mode, #9332 (#9867) + * fix: Table panel now renders annotations correctly. Fixes #9842 (#9868) + * build: fixes build and jest tests on Windows + * Update CHANGELOG.md + * fix cloudwatch ec2_instance_attribute (#9718) + * graph: the stack & legend sort sync was not working correctly, the z-index sorting that happened in after the legend sort order was applied and messed with the order even though the sort function returned zero for all entries, combined the sort function to one sort function, fixes #9789 (#9797) + * not ok option to alert list, fixes: #9754 + * changelog: note about closing #9661 + * return empty array for no datapoints + * fix query inspector for cloudwatch + * Add AWS/NetworkELB to cloudwatch definitions + * changelog: note about closing #9784 + * test: adds tests for password encodiing + * use SHOW RETENTIONS to test influxdb connection (#9824) + * Use hex.EncodeToString to encode to hex + * Added missing documentation for auth.proxy (#9796) + * fix date test (#9811) + * docker: expose statsd endpoint for graphite block + * update lib/pq (#9788) + * Update the config key to database_log_queries so it is more descriptive, as suggested in #9785. + * graph: don't change original series name in histogram mode, #8886 (#9782) + * MySQL Performance when using GF_DATABASE_URL Set MaxIdleConn and MaxOpenConn when using the GF_DATABASE_URL configuration. Also added GF_DATABASE_DEBUG flag to print SQL statements and SQL execution times. See #9784 for the details. + * Update postgres.md + * Update CHANGELOG.md + * colorpicker: fix color string change #9769 (#9780) + * refactor: alert list panel fixes and no alerts message, rewrite of PR #9721 + * feat: refactoring hide time picker PR #9756 + * search: began writing test for new search + * changed class name for no-alerts + * chore(docs): update the search Query Example + * ux: search progress + * dashfolders: fix for dashlist nav + * reduce docker-compose header version + * ux: progress on new search + * ux: minor changes + * ignore docker-compose.yaml + * docs: update latest release to 4.6.1 + * packages: update published package version + * option to hide Time picker, fixes #2013 + * fix: panel view now wraps, no scrolling required, fixes #9746 + * changelog: set release date for 4.6.1 + * changelog: adds note about closing #9707 + * Update CHANGELOG.md + * fix default alias + * add period alias + * plugins: fix for loading external plugins behind auth proxy, fixes #9509 + * testdata: added manual entry mode to test data + * new design for no alerts in alert-list, fixes #9721 + * fix: fixed compiler error from #9676 + * converted ng_model_on_blur.js to ts, deletedkeyboard_manager.js (#9676) + * docs: update testdata enable explanantion + * MAINTAINER is deprecated, now using LABEL + * Update ROADMAP.md + * Adding energy, area, and acceleration units (#9336) + * tests: migrated tests for link_srv to jest, #9666 + * Transitioning fig to docker-compose v3 + * tests: migrated tests for link_srv to jest, #9666 + * fix for dashboard tag link bug, fixes #9737 (#9739) + * github: dont require bug/fr in title + * changelog: adds note about closing #9713 + * converted confirm_click.js to .ts (#9674) + * Update codecov.yml + * Update CHANGELOG.md + * change default sslmode for postgres to verify-full (#9736) + * fix: color picker bug at series overrides page, #9715 (#9738) + * Update ROADMAP.md + * tech: switch to golang 1.9.2 + * always quote template variables for mysql when multi-value is allowed (#9712) + * always quote template variables for postgres when multi-value or include (#9714) + * fix: dashboard links dropdown toggle did not update view, fixes #9732 + * docs: adds prom grafana dashboard + * graphite: tag is required for values autocomplete + * dashfolders: bulk edit tag filtering + * Correct help message of api_dataproxy_request_all_milliseconds + * changelog: adds note about closing #9645 + * changelog: adds note about closing #9698 + * ace editor for text panel + * dashboards: bulk edit delete + * tech: add missing include + * dashboards: fix link to bulk edit + * sql: remove title from annotation help + * changelog: adds note about closing #9681 + * fix: undefined is not an object evaluating this., #9538 + * [Bug Fix] Opentsdb Alias issue (#9613) + * fix: graphite annotation tooltip included undefined, fixes #9707 + * Alertlist: Inform when no alerts in current time range + * save as should only delete threshold for panels with alerts + * graphite: tags and values autocomplete based on @DanCech PR to graphite-web + * changelog: note for #9596 + * add __timeGroup macro for mysql (#9596) + * updated icons + * docs: fix link + * ux: testing 3px panel border radius + * more link fixes + * fixed link issues + * renamed file + * converted inspect_ctrl.js to ts (#9673) + * converted dashboard_loaders.js to .ts (#9672) + * declared any to info in declaration + * converted analytics.js to ts, minor code formatting fix to timer.ts (#9663) + * docs: updated download links + * docs: update alerting with new data sources + * changelog: spelling + * plugins: added backward compatible path for rxjs + * ux: updated singlestat default colors + * prometheus: fixed unsaved changes warning when changing time range due to step option on query model was changed in datasource.query code, fixes #9675 + * docs: updated changelog + * fix: firefox can now create region annotations, fixes #9638 + * changelog: adds note about closing #9639 + * set release date for 4.6.0 + * grid: work in progress on row repeats + * dashfolders: rough draft of bulk edit + * converted linkSrv.js to linkSrv.ts + * docs: update docker installation docs + * grid: minor changes + * converted outline.js to outline.ts (#9658) + * converted timer.js to timer.ts (#9656) + * datasource as cfg: typo + * Create codecov.yml + * datasource as cfg: explain why cmd.version can be higher + * #edit_grafana_organisation_apis_doc (#9651) + * add a phantomjs execution status to log if errors happens, e.g. OOM killer kills it (#9644) + * grid: worked on row options modal and row removal + * dashboard: fix home dashboard getting started panel + * Fix typo in template help tab + * replace store.js with store.ts, test for store.ts (#9646) + * tests: added test for DashboardRow + * docs: update first page with data source guides + * docs: document annotations for postgres/mysql + * docs: update for template variables + * changelog: spelling + * Allow for multiple auto interval template variables (#9216) + * changelog: adds note about closing #9645 + * tech: remove rabbitmq event publisher + * changelog: note for #9030 + * dont quote variables for mysql and postgres datasource (#9611) + * asscoiate comment with name + * Update development.md + * ux: row collapse / expand starting to work + * changelog: adds note about closing #9640 + * alerting: only editors can pause rules + * prom: adds pre built grafana dashboard + * changelog: adds note about closing #9636 + * fix: another fix for playlist view state, #9639 + * ux: updated icons + * shore: migrating config/settings.js to typescript + * fix: fixed playlist controls and view state, fixes #9639 + * Fixed #9636 + * shore: removed unused old system conf file + * Use d3 from node_modules (#9625) + * update log15 (#9622) + * docs: update whats-new-in + * changelog: small text change + * changelog: v4.6.0-beta3 released + * tech: annotations refactor, add tests for regions processing (#9618) + * Move #9527 to 4.6.0-beta3 + * build: disable jest on precommit hook -windows fix + * build: fix all npm run commands for Windows + * plugins: fixes path issue on Windows + * build: tryingt of fix windows build issue + * tests: removes commented tests + * graph: invert order when sorting by legend + * fix: escape series name in graph legend, added aliasEscaped to time series model to reuse escape, fixes #9615 + * build: fixed gofmt issue and addd mock response feature + * prometheus: enable gzip for /metrics endpoint + * build: split circle test shell scripts + * datasources: change to optimisic concurrency + * build: reduced webpack log output and remove race flag from go tests + * build: set max workers to 2 for jest + * build: log heap usage + * build: another build fix + * tests: migrated two more tests to jest + * build: fixed build failure + * build: reworking pre commit hook + * build: added precommit + * fix: fixed tslint validation error + * test: added first react snapshot test + * docs: another docs fix + * docs: fix docs redirect for older datasources index page, fixes #9609 + * [Tech]: Start migrating to Jest for tests (#9610) + * Fix typo in init.d script + * graphite: auto detect version + * graphite: improved version comparison + * graphite: split tags and functions into 2 rows when seriesByTag used + * graphite: add tags to dropdown and switch to tag editor if selected + * plugins: expose dashboard impression store + * ux: minor ux tweaks + * Sort series in the same order as legend in graph panel (#9563) + * Update CHANGELOG.md + * fix: fixed save to file button in export modal, fixes #9586 + * mysql: add usage stats for mysql + * note for #9527 + * modify $__timeGroup macro so it can be used in select clause (#9527) + * Update CHANGELOG.md + * Fix heatmap Y axis rendering (#9580) + * prometheus: add builtin template variable as range vectors + * Note for #5457 + * fix: fixed prometheus step issue that caused browser crash, fixes #9575 + * changelog: adds note about closing #9551 + * fix: getting started panel and mark adding data source as done, fixes #9568 + * pluginloader: esModule true for systemjs config + * Fixes for annotations API (#9577) + * ux: new fixes + * Grafana5 light (#9559) + * When Messasge field is set for an alert, map it to the output field in a Sensu check result. If Message is empty, send "Grafana Metric Condition Met" + * ux: work on rows + * fix vector range + * allow ":" character for metric name + * build: added imports of rxjs utility functions + * grid: row work + * fix template variable expanding + * Update CHANGELOG.md + * annotations: quote reserved fields (#9550) + * Update CHANGELOG.md + * Update CHANGELOG.md + * Update CHANGELOG.md + * fix: fixed color pickers that were broken in minified builds, fixes #9549 + * ux: align alert and btn colors + * docs: doc updates + * remove duplicative prometheus function + * remove label match operator from keyword.operator + * remove label match operator from keyword.operator + * remove extra state push + * fix typo + * Update CHANGELOG.md + * newgrid: row progress + * styleguide: fix link in index + * api: fix for dashboard version history + * textpanel: fixes #9491 + * graphite: datasource refactor + * csv: fix import for saveAs shim + * grid: minor progress on new row concept + * ux: add panel progress + * alert_tab: clear test result when testing rules + * ux: worked on add panel function + * plugins: expose more util and flot dependencies + * (cloudwatch) fix cloudwatch query error over 24h (#9536) + * Add autofocus tag for username field on login.html (#9526) + * show error message when cloudwatch datasource can't add + * ux: minor button changes + * CloudWatch: Add ALB RequestCountPerTarget metric + * ux: color tweaks + * ux: testing out new icons + * set nightly version to v4.7.0-pre1 + * changelog: adds release date for v4.6.0-beta1 + * ux: minor fixes + * grid: fixed grid width issues + * grid: repeat refactoring and unit tests + * Missing dot in aws credentials path + * newgrid: added constants, changed grid to 24 cols, added tests for panel repeats + * update packagecloud script for 4.6.0-beta1 + * docs: doc updates + * changelog: adds note about closing #9516 + * alerting: add count_non_null reducer + * Update rpm.md + * grid: minor progress on panel repeats + * changed name back to use underscore instead of camelcase, need to think more about this + * fixed dashboard sorting + * newgrid: worked panel duplicate + * fix: various fixes for new grid + * fix: can now remove annotation tags without popover closing + * tech: add backward compatibility for directive (#9510) + * fix: fixed links on new 404 page, fixes #9493 + * logging: dont use cli logger in http_server + * oauth: raise error if session state is missing + * oauth: provide more logging for failed oauth requests + * prepare for 4.6.0-beta1 release + * docs: updated whats new article + * docs: initial draft release v46 + * graph: fix y-axis decimalTick check. Fixes #9405 + * minor docs update + * docs: annotation docs update + * changelog: adds note about closing #7104 + * changelog: adds note about closing #9373 + * metrics: disable gzip for /metrics endpoint (#9468) + * dashgrid: fix or skip tests for repeat rows + * Annotation docs (#9506) + * Update CHANGELOG.md + * Update PLUGIN_DEV.md + * Update PLUGIN_DEV.md + * Update README.md + * dashboardgrid: disable dynamic_dashboard_srv for now + * Fixed link issue in CHANGELOG + * Create PLUGIN_DEV.md + * changelog: adds note about closing #9371,#5334,#8812 + * ds_edit: placeholder should only be cert header + * fixed minor styling issus (#9497) + * fix: alert api limit param did not work and caused SQL syntax error, fixes #9492 + * annotations: add endpoint for writing graphite-like events (#9495) + * Update unsaved_changes_modal.ts + * ux: style tweaks + * newgrid: various fixes + * If retention policy is set for influxDB, preprend that to the measurement name for exploration queries. + * newgrid: fixed migration code to new grid + * docker: updated our graphite docker container + * grid: edit/view now works + * dashboard: fixes for panels without rows + * webpack: changed devtools setting to stop exceptions + * fix: ignore upgrading dashboard grid when there are no rows + * grid: fixed migration for rows without height + * ux: minor fix sidemenu + * newgrid: progress on fullscreen/edit view modes + * fix: set lastSeenAt date when creating users to then years in past insteasd of empty date, fixes #9260 + * ux: minor ux fix + * Retain old name for TLS client auth + * Return error if datasource TLS CA not parsed + * Datasource settings: Make HTTP all caps + * Datasource HTTP settings: Add TLS skip verify + * Make URL capitalisation consistent in UI + * Alias macron package in app_routes.go + * Verify datasource TLS and split client auth and CA + * Tidy spacing in datasource TLS settings + * Tests: Clarify what InsecureSkipVerify does + * postgres: add missing ngInject decorator + * search: fix search to limit dashboards better + * grid: fixed geting started panel pos + * grid: progress on react grid + * docs: initial docs for new annotation features, #9483 + * Adds note for #9209 to changelog + * Postgres Data Source (#9475) + * tech: expose more to plugins, closes #9456 + * Fix NaN handling (#9469) + * snapshots: improve snapshot listing performance, #9314 (#9477) + * grid: progress on new grid, resize & saving layouts works + * mysql: fix interpolation for numbers in temp vars + * Added docs for Kafka alerting + * grid: minor progress + * Fixed failing go tests + * gofmt fixes + * Added tests + * Kafka REST Proxy works with Grafana + * tech: got angular component to load inside react grid + * grid: need to find a way to add angular component inside react + * ux: initial react grid poc + * added insrtuctions for oauth2 okta bitbucket (#9471) + * Unified Color picker fixes (#9466) + * Show min interval query option for mixed datasource (#9467) + * gzip: plugin readme content set explicitly + * ignore pattern for vendored libs + * fix: escape metric segment auto complete, fixes #9423 + * Corrected a PostgreSQL SELECT statement. (#9460) + * tests: found the unhandled promise issue in the dash import tests + * testing: fixing tests + * annotations: minor change to default/edit annotation color + * Create annotations (#8197) + * OAuth: Rename sslcli + * OAuth: Separate TLS client auth and CA config + * OAuth: Check both TLS client cert and key + * Always verify TLS unless explicitly told otherwise + * fix: threshold's colors in table panels (#9445) (#9453) + * singlestat: fix sizing bug #9337 (#9448) + * Revert "Fix coloring in singlestat if null value (#9438)" (#9443) + * Fix coloring in singlestat if null value (#9438) + * fix: missing semicolon + * changed jsontree to use jsonexplorer (#9416) + * docs page for authproxy (#9420) + * Update codebox (#9430) + * Series color picker fix (#9442) + * fix type in readme + * removed commented line + * changelog: adds note about closing #9110 + * Fixed typo + * Change empty string checks and improve logging + * graphite-tags: refactor, improve performance - remove unnecessary parseTarget() calls + * changelog: adds note about closing #9208 + * graphite-tags: add tests + * Fix spelling on 404 page. + * Lint fix + * Update kbn.js + * graphite-tags: refactor, use instead of + * Add Norwegian Krone denominator for currency + * fixed layout for column options, changed dropdown for date format kept old code + * build: add noUnusedLocals to tsc parameters + * build: install go based on env variable + * changes go version to 1.9.1 + * changelog: adds note about closing #9226 + * changelog: add note about closing #9429 + * changelog: adds note about closing #9399 + * graphite-tags: initial tag editor + * Fix formatting issue + * Add milliseconds format in table panel's config + * support for s3 path (#9151) + * Remove apparently unnecessary .flush() calls. + * Fix empty message and toolong attribute names Use default state message if no message is provided by the user Slice attribute name to maximum of 50 chars + * Address review comments. + * changelog: add note about closing #7175 + * plugin_loader: expose app_events to plugins + * Add the missing comma + * colorpicker: refactoring the new unififed colorpicker, #9347 + * Unified colorpicker (#9347) + * fix missing column headers in excel export (#9413) + * build: remove clean plugin from dev build + * build: fixed broken elastic unit test + * shore: cleanup unused stuff in common.d.ts + * Build URL for close alert request differently + * some restyling (#9409) + * Docs text fixes (#9408) + * Checkbox fixes (#9400) + * fix: ensure panel.datasource is null as default + * plugibs: expose more to plugins + * properly parse & pass upload image bool from config + * break out slack upload into separate function + * tech: minor npm scripts update + * build: fixed build + * refactoring: minor refactoring of PR #8916 + * Update script to make it use OpsGenie's REST API + * docs: minor docs fix + * Merge branch 'master' of github.com:grafana/grafana + * plugins: expose datemath to plugins as well, fixes zabbix plugin + * build: minor webpack fix + * redesigned dashboard links settingd, fixed a misspelling in rows and added fixed width to buttons (#9397) + * docs: updated building from source docs + * playlist: play and edit should use same width + * shore: fixed html indentation, #9368 + * tech: updated yarn.lock + * shore: minor cleanup + * Webpack (#9391) + * fixing json for CI + * adding support for token-based slack file.upload API call for posting images to slack + * changelog: adds note about closing #8479 + * changelog: adds note about closing #8050 + * changelog: adds note about closing #9386 + * change pdiff to percent_diff for conditions + * panel: rename label on csv export modal + * add diff and pdiff for conditions + * fix, add targetContainsTemplate() + * fix cloudwatch alert bug + * add debug log + * move extend statistics handling code to backend + * fix assume role + * improve cloudwatch tsdb + * refactor cloudwatch code + * remove obsolete code + * move cloudwatch crendential related code + * remove old handler + * fix annotation query + * fix time + * fix dimension convertion + * re-implement annotation query + * fix parameter format + * fix alert feature + * fix parameter format + * refactor cloudwatch to support new tsdb interface + * refactor cloudwatch frontend code + * refactor cloudwatch frontend code + * fix test + * re-implement dimension_values() + * fix error message + * remove performEC2DescribeInstances() + * re-implement ec2_instance_attribute() + * re-implement ebs_volume_ids() + * import the change, https://github.com/grafana/grafana/pull/9268 + * fix conflict + * fix test + * remove obsolete GetMetricStatistics() + * fix test + * move test code + * fix conflict + * porting other suggestion + * re-implement get regions + * move the metric find query code + * (cloudwatch) move query parameter to 'parameters' + * parse duration + * remove offset for startTime + * cache creds for keys/credentials auth type + * fix test + * fix invalid query filter + * count up metrics + * (cloudwatch) alerting + * add brazil currency + * tech: upgrade of systemjs to 0.20.x working + * tech: reverted to systemjs + * tech: migrating elasticsearch to typescript + * changelog: add note about using golang 1.9 + * change go version to 1.9 + * changelog: adds note about closing #9367 + * fixes + * tech: systemjs upgrade + * made a text-panel page, maybe we don't need it + * cleaned up html/sass and added final touches + * Enable dualstack in every net.Dialer, fixes #9364 + * jaeger: capitalize tracer name + * jaeger: logging improvement + * tech: systemjs upgrade + * Have include intervalFactor in its calculation, so always equal to the step query parameter. + * alertlist: toggle play/pause button + * updated css and html for recent state changes for alert lists + * Fix export_modal message (#9353) + * s3: minor fix for PR #9223 + * internal metrics: add grafana version + * changelog: adds note about closing 5765 + * Update latest.json + * typescript: stricter typescript option + * prom_docker: give targets correct job name + * testdata: add bucket scenarios for heatmap + * dev-docker: add grafana as target + * changelog: add note ablout closing #9319 + * introduce smtp config option for EHLO identity + * changelog: note about closing #9250 + * go fmt + * new page for text, needs more work + * replaced img in graph, created alert list page + * docs: update docs + * Update CHANGELOG.md + * changelog: adds note about closing #5873 + * replaced image + * Docs new updates (#9324) + * Update CHANGELOG.md + * Update latest.json + * cleanup: removed unused file + * tech: remove bower and moved remaining bower dependencies to npm + * tech: cleanup and fixed build issue + * tech: upgraded angularjs and moved dependency from bower to npm, closes #9327 + * follow go idiom and return error as second param + * tech: updated tsconfig + * docker: adds alertmanager to prometheus fig + * tech: more tslint rules + * another img update + * tech: removing unused variables from typescript files, and making tslint rules more strict + * deleted old shortcuts instruction + * text uppdates for dashlist and singlestat(+img). updated the keyboard shortcuts + * context is reserved for go's context + * make ds a param for Query + * remove batch abstraction + * rename executor into tsdbqueryendpoint + * remove unused structs + * refactor response flow + * tech: removed test component + * ux: minor singlestat update + * singlestat: minor change + * Update CHANGELOG.md + * Singlestat time (#9298) + * tech: progress on react poc + * adds note about closing #9213 + * Update _navbar.scss + * replaced images, updating text(not finished) + * fix: close for 'Unsaved Changes' modal, #9284 (#9313) + * Initial graphite tags support (#9239) + * tech: initial react poc + * Make details more clean in PD description + * bug: enable HEAD requests again + * Add `DbClusterIdentifier` to CloudWatch dimensions (#9297) + * templating: fix dependent variable updating (#9306) + * Fix adhoc filters restoration (#9303) + * Explicitly refer to Github 'OAuth' applications + * config bucket and region for s3 uploader + * fixes bug introduced with prom namespaces + * fixing spelling of millesecond -> millisecond + * fixing spelling of millesecond -> millisecond + * Remove duplicate bus.AddHandler() (#9289) + * Update CHANGELOG.md + * use same key as mt + * tag alert queries that return no_data + * updated error page html+css, added ds_store to ignore (#9285) + * public/app/plugins/panel/graph/specs/graph_specs.ts: relax tests to be "within" instead of "equal", so they won't fail on i686 (#9286) + * Fix path to icon (#9276) + * adds note about fix in v4.5.2 + * skip NaN values when writing to graphite + * addded mass units, #9265 (#9273) + * Fully fill out nulls in cloudfront data source (#9268) + * make it possible to configure sampler type + * mark >=400 responses as error + * change port for jaeger dev container + * logwrapper for jaeger + * make samplerconfig.param configurable + * adds custom tags from settings + * use route as span name + * add trace headers for outgoing requests + * docker file for running jaeger + * better formating for error trace + * attach context with span to *http.Request + * add traces for datasource reverse proxy requests + * trace failed executions + * use tags instead of logs + * use opentracing ext package when possible + * set example port to zipkin default + * adds codahale to vendor + * makes jaeger tracing configurable + * add trace parameters for outgoing requests + * adds basic traces using open traces + * require dashboard panels to have id + * fix: jsonData should not be allowed to be null, fixes #9258 + * packaging: reduce package size + * Update upgrading.md (#9263) + * Added --pluginUrl option to grafana-cli for local network plugin installation + * adds note about closing #1395 + * add locale format + * update changelog + * fixes broken tests :boom: + * minor code adjusetments + * pass context to image uploaders + * remove unused deps + * Reduced OAuth scope to read_write + * GCS support via JSON API + * gofmt fixes + * Added GCS support #8370 + * move more known datasources from others + * Remove alert thresholds on panel duplicate, issue #9178 (#9257) + * 4.5.1 docs + update version to 5.0.0-pre1 + * publish_both.sh update for 4.5.1 + * Update CHANGELOG.md + * docs: updated changelog + * packaging: reducing package size be only including public vendor stuff we need + * docs: update download links + * allow ssl renegotiation for datasources + * check args for query + * add test for completer + * fix + * follow token name change + * (prometheus) support label value completion + * (prometheus) support label name completion + * get s3 url via aws-sdk-go, fix #9189 + * Prometheus: Rework the interaction between auto interval (computed based on graph resolution), min interval (where specified, per query) and intervalFactor (AKA resolution, where specified, per query). As a bonus, have and reflect the actual interval (not the auto interval), taking into account min interval and Prometheus' 11k data points limit. + * minor fix + * (prometheus) support instant query for table format, use checkbox to switch query type + * develop: fixed more broken tests, couple still failing + * (prometheus) instant query support + * ux: alternative row design + * newgrid: fixes to default home dashboard + * ux: minor fixes + * ux: new grid progress + * grid: minor progres on new grid + * Add thumbnail to card + * grid: minor progres on new grid + * Add values to the hipchat card + * Reorder editorconfig + * ux: minor button changes + * ux: minor updates + * ux: changed cta button style + * minor fix + * ux: added scroll to two pages + * minor fix for page-h1 + * grid work + * progress on rows as panelsW + * fixed unit tests + * minor user avatar stuff + * started on rows as panels in single grid + * minor user list cahnge + * users view update + * ux: color tweaks + * Moved around the columns a bit + * ux: dashboard stuff + * ux: minor changes + * ux: sidemenu animation duration + * ux: fixed sidenav issues + * ux: sidemenu toggling + * ux: sidenav fixes and dashboard search changes + * ux: switching orgs now works through modal + * ux: making org visibile in profile view + * ux: more nav work + * ux: nav fixes & polish + * ux: more nav work + * ux: more nav work + * ux: navigation work + * ux: sidenav fixes and dashboard search changes + * ux: more work on sidemenu + * Silly gradient added a placeholder. no more experimentation to be done here until Trent has a pass at it + * ux: scrollbar stuff + * Added drop shadown for sticky scrolling, moved colors into dark and light variables + * Reduced size of breadcrumbs, additional form styling. Colors still need to be adjusted + * Starting to play with new form styles + * ux: minor scroll fix + * ux: removed custom scrollbar look + * ux: reduced size of sidemenu icons a bit + * ux: testing fixed sidemenu and breadcrumbs + * ux: minor navbar update + * ux: new breadcrumb progress + * ux: wip + * ux: new page header look wip + * ux: testing roboto font + * ux: use flexbox for sidenav, put logo in sidenav + * moving panels betwen rows are starting to work + * grid: progress on row support + * grid: new grid fixes + * new-grid: fixed destory issues + * grid: remove panel works + * grid: updated gridstack to use grafana fork + * feat: new grid fixes + * Enable datasources to be able to round off to a UTC day properly + * minor fixes + * updated + * feat: new grid system progressW + * ux: minor panel menu fix + * ux: minor panel menu tweaks + * ux: tweaks to new panel menu + * updated + * dashfolders: inherited permissions for dashboards + * dashfolders: handle permission changes when saving/moving dashboards + * added code from #8504, and #8021 + * dashboard folder search fix + * dashfolders: fix user group picker + cleanup + * dashfolders: rename refactor + * dashfolders: validation for duplicates in acl modal + * minor update + * ux: style tweaks, trying out non italic headers + * ux: nav changes + * added sidemeu stuff + * dashfolders: use canadmin permission in settings menu + * dashfolders: tests for permission modal + * dashboard acl fixes + * acl fixes + * dashfolders: new admin permission needed to view/change acl + * acl: more acl work + * dashfolders: filter search based on child dash permissions + * dashfolders: allows phantomjs rendering for alerting + * dashfolders: allow overflow-y for modals + * dashfolders: security for png rendering + * dashboard acl stuff + * dashboard acl work + * dashboard acl + * working on dashbord acl stuff + * WIP: first draft of permissionlist panel + * dashboard acl + * dashboard acl work + * WIP: fix js tests for acl + * WIP: fix folder-picker for dashlist + * dashboard acl work + * refactoring: dashboard folders + * dashboard acl modal + * WIP: adding roles - not finished + * refactoring: moving dashboards acl migrations to its own folder + * WIP: fix acl route + * refactoring: renaming + * folders: changed api urls for dashboard acls + * refactoring more renaming + * refactoring renaming dashboard folder operations + * dashboard_folders refactoring + * refactoring dashboard folder security checks + * dashboard guardian refactoring starting to work + * dashboard folders acl work + * refactoring dashoard folder guardian + * WIP: refactor user group modal + * refactoring: Dashboard guardian + * WIP: remove unused test file + * WIP: refactor dash search and remove extra query + * WIP: move guardian logic for search into the sql query + * WIP: remove dashboard children on delete + * dashboard_folders: refactoring picker and folder selection in dashboard settings & save as menu + * WIP: adds API check to stop folders being included in folders + * use gf-form-dropdown in user picker + * WIP: add test for add user group permission + * WIP: can edit dashboard permission + * WIP: clean up after user and org user delete + * WIP: remove permissions when deleting global user + * dashboard_folders: updated + * WIP: delete dependent permissions on user group delete + * dashboard_folders: fixes to user picker & group picker + * dashboard_folders: fixes to user & group picker + * minor update + * WIP: permission checking for dash version api methods + * ux: gridstack poc + * Gridstack: testing + * WIP: check permissions for delete/post dashboard + * WIP: fixes after version history merge + * ux: nav experiments + * WIP: add permission check for GetDashboard + * ux: side nav experiments + * WIP: fix test after merge conflict + * WIP: fix go fmt error + * WIP: user + user-group pickers for permissions + * WIP: API - add dash permission + * WIP: user-picker directive + * WIP: Permission Type as string in permission query + * WIP: fixes after navbar changes + * WIP: dashlist in template for new folder + * WIP: refactor folder-picker for dashlist + * WIP: dashboard search by folder + toggle for list or tree mode + * WIP: adds folder-picker to save as dialog + * WIP: use metric-segment for folder picker + * WIP: add dummy root folder to folder picker + * WIP: Create new dashboard button in dash search + * WIP: permissions moved to settings tab. Adds folder dropdown to general settings tab + * WIP: add parentid to getdashboard query result + * WIP: dashboard search by type (folder or dash) + * WIP: fix after upstream sqlstore refactoring + * WIP: rollback + * WIP: delete permission in API + * WIP: user group additions + * WIP: remove browse mode for dashboard search + * WIP: get Dashboard Permissions + * WIP: add open/closed folders icons for dash search + * WIP: Can remove dashboard permission - sql + * WIP: limit GetAllowedDashboards sql query with a where in + * WIP: Add or update Dashboard ACL + * WIP: guardian service for search + * dashboard: sort search with dash folder first + * WIP: add some TS types + * WIP: edit user group page + * WIP: API methods for add/remove members to user group + * WIP: add update user group command + * WIP: add new group, needs to be redone + * WIP: add user group search + * WIP: add usergroup commands and queries + * WIP: rough prototype of dashboard folders + * ux: very early start to new sidemenu + * ux: very early start to new sidemenu + * ux: minor tweak to faintness of icons of panel menu caret + * ux: minor progress on panel title menu makover + * Include triggering metrics to pagerduty alerts + * ux: more work on panel menu + * ux: panel title ux improvements poc + + ------------------------------------------------------------------- +Mon Jan 29 11:04:08 UTC 2018 - jan.fajerski@suse.com + +- Use %{_fillupdir} for sysconfig file + +------------------------------------------------------------------- +Wed Jan 24 01:53:00 UTC 2018 - tserong@suse.com + +- Remove non-standard-gid from rpmlintrc + +------------------------------------------------------------------- +Thu Jan 18 12:41:48 UTC 2018 - tserong@suse.com + +- Use GRAFANA_GROUP macro in spec file instead of GROUP (which otherwise + collides with the package group, resulting in incorrect file/directory + ownership) + +------------------------------------------------------------------- +Sat Nov 11 20:21:28 UTC 2017 - kkaempf@suse.com + +- mark %{_datadir}/%{name}/conf/defaults.ini as %conf instead + of %doc, grafana-server won't start without this file. + +------------------------------------------------------------------- +Tue Oct 24 15:25:39 UTC 2017 - johannes.grassler@suse.com + +- Create /var/lib/grafana/dashboards/ + +------------------------------------------------------------------- +Tue Oct 17 09:54:03 UTC 2017 - johannes.grassler@suse.com + +- Create plugin directory and clean up (create in %install, + add to %files) handling of /var/lib/grafana/* and + /var/log/grafana. + +------------------------------------------------------------------- +Mon Sep 18 11:35:11 UTC 2017 - tserong@suse.com + +- Update to version 4.5.1: + + New Features: + * Table panel: Render cell values as links + * Elasticsearch: Add ad hoc filters directly by clicking values + * MySQL: New rich query editor with syntax highlighting + * Prometheus: New rich query editor with syntax highlighting + + Enhancements: + * GitHub OAuth: Support for GitHub organizations with 100+ teams + * Graphite: Calls to Graphite api /metrics/find now include time range + * Graphite: Added new graphite 1.0 functions + * Elasticsearch: Ad-hoc filters now use query phrase match filters + + Breaking change: + * InfluxDB/Elasticsearch: The panel & data source option named "Group by + time interval" is now named "Min time interval" and does now always + define a lower limit for the auto group by time. + + Other changes: + * InfluxDB: Change time range filter for absolute time ranges to be + inclusive instead of exclusive + * InfluxDB: Added paranthesis around tag filters in queries + + Bug Fixes: + - Modals: Maintain scroll position after opening/leaving modal + - Templating: You cannot select data source variables as data source + for other template variables + - MySQL/Postgres: Fix for max_idle_conn option default which was wrongly + set to zero which does not mean unlimited but means zero. + + See /usr/share/doc/packages/grafana/CHANGELOG.md for more details + +------------------------------------------------------------------- +Thu Jun 22 09:37:11 UTC 2017 - jan.fajerski@suse.com + +- Fix spec file to create and own /var/{lib,log}/grafana (bsc#1044933) + +------------------------------------------------------------------- +Fri Jun 16 02:24:58 UTC 2017 - tserong@suse.com + +- Require phantomjs package at runtime instead of shipping prebuilt + x86_64 phantomjs binary (bsc#1044444) + +------------------------------------------------------------------- +Tue May 2 09:01:28 UTC 2017 - tserong@suse.com + +- Make %fdupes create hardlinks, not symlinks (symlinks result in + grafana not being able to load plugins, and the UI breaking) + +------------------------------------------------------------------- +Fri Apr 28 10:00:11 UTC 2017 - tserong@suse.com + +- Moved build of frontend assets from RPM %pre and %posttrans to + Makefile, so this piece of work can be done by the packager, rather + than at installation time. + +------------------------------------------------------------------- +Thu Mar 23 12:57:37 UTC 2017 - thipp@suse.de + +- Update to version 4.2.0 +- Refactoring based on new packaging proposal + +------------------------------------------------------------------- +Mon Sep 5 12:40:30 UTC 2016 - avvissu@yandex.by + +- Update to 3.1.1: + * see: /usr/share/doc/packages/grafana/CHANGELOG.txt + +------------------------------------------------------------------- +Wed Jun 1 23:20:02 UTC 2016 - avvissu@yandex.by + +- Update to 3.0.4: + * see: /usr/share/doc/packages/grafana/CHANGELOG.txt + +------------------------------------------------------------------- +Wed May 25 04:14:58 UTC 2016 - avvissu@yandex.by + +- Update to 3.0.3: + * see: /usr/share/doc/packages/grafana/CHANGELOG.txt + +------------------------------------------------------------------- +Tue May 17 05:28:14 UTC 2016 - avvissu@yandex.by + +- Update to 3.0.2 + * see: /usr/share/doc/packages/grafana/CHANGELOG.txt +- Enable dependency auto-generation +- Don't use npm install -g grunt-cli +- Spec file cleanup + +------------------------------------------------------------------- +Fri Apr 1 04:25:50 UTC 2016 - avvissu@yandex.by + +- Add golang(github.com/tools/godep) + +------------------------------------------------------------------- +Thu Mar 31 13:40:28 UTC 2016 - avvissu@yandex.by + +- Remove static libraries + +------------------------------------------------------------------- +Tue Mar 29 06:48:06 UTC 2016 - avvissu@yandex.by + +- Add _service file to control the URL used by %% pre + +------------------------------------------------------------------- +Tue Feb 23 15:21:00 UTC 2016 - avvissu@yandex.ru + +- Use BuildRequires when a development branch becomes stable + +------------------------------------------------------------------- +Mon Jan 25 16:47:59 UTC 2016 - avvissu@yandex.ru + +- Fix buid error: don't use %%goinstall (golang-macros.rb is not + stable) + +------------------------------------------------------------------- +Tue Jan 5 03:36:40 UTC 2016 - avvissu@yandex.ru + +- Fix build error: change GOPATH +- Copy the vendor folder after installation of package + +------------------------------------------------------------------- +Fri Dec 11 22:37:23 UTC 2015 - avvissu@yandex.ru + +- Update to 2.6.0: + * see: /usr/share/doc/packages/grafana/CHANGELOG +- Create a new spec file for building RPM + +------------------------------------------------------------------- +Fri May 8 15:07:28 UTC 2015 - mrueckert@suse.de + +- initial package + diff --git a/grafana.spec b/grafana.spec new file mode 100644 index 0000000..53d9f67 --- /dev/null +++ b/grafana.spec @@ -0,0 +1,157 @@ +# +# spec file for package grafana +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define GRAFANA_USER %{name} +%define GRAFANA_GROUP %{name} + +Name: grafana +Version: 5.0.0 +Release: 0 +Summary: Dashboards and editors for Graphite, InfluxDB, OpenTSDB +License: Apache-2.0 +Group: System/Monitoring +Url: http://grafana.org/ +Source: %{name}-%{version}.tar.xz +Source1: %{name}-rpmlintrc +Requires: phantomjs +# Needed as a BuildRequires too, so setting up a symlink will work +BuildRequires: phantomjs +BuildRequires: fdupes +BuildRequires: golang-packaging +BuildRequires: libgcc_s1 +BuildRequires: shadow +BuildRequires: go >= 1.8 +Requires(post): %insserv_prereq +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{?systemd_requires} + +%description +The leading graph and dashboard builder for visualizing time series metrics. + +Grafana provides a powerful and elegant way to create, explore, and share +dashboards and data with your team and the world. + +%prep +%setup -q -n grafana-%{version} + +%build +%goprep github.com/grafana/grafana +# Manual build in order to inject ldflags so grafana correctly displays +# the version in the footer of each page. Note that we're only injecting +# main.version, not main.commit or main.buildstamp as is done in the upstream +# build.go, because we don't have access to the git commit history here. +# (The %%gobuild macro can't take quoted strings; they get split up when +# expanded to $extra_flags in process_build() in /usr/lib/rpm/golang.sh.) +export IMPORTPATH="github.com/grafana/grafana" +export BUILDFLAGS="-s -v -p 4 -x -buildmode=pie" +export GOPATH=%{_builddir}/go:%{_builddir}/contrib +export GOBIN=%{_builddir}/go/bin +go install $BUILDFLAGS -ldflags '-X main.version=%{version}' $IMPORTPATH/pkg/cmd/... + +%install +%goinstall + +# we're missing %%gosrc and %%gofilelist... (although that *might* be ok...) + +install -Dm644 {packaging/rpm/systemd/,%{buildroot}%{_unitdir}/}%{name}-server.service +install -dm755 %{buildroot}%{_sbindir} +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-server +mv %{buildroot}/%{_bindir}/grafana-* %{buildroot}/%{_sbindir} + +install -Dm644 packaging/rpm/sysconfig/%{name}-server \ +%{buildroot}%{_fillupdir}/sysconfig.%{name}-server + +install -d -m0750 %{buildroot}%{_localstatedir}/lib/%{name} +install -d -m0750 %{buildroot}%{_localstatedir}/log/%{name} +install -d -m0755 %{buildroot}/%{_localstatedir}/lib/%{name}/plugins +install -d -m0755 %{buildroot}/%{_localstatedir}/lib/%{name}/dashboards + +install -Dm640 conf/sample.ini %{buildroot}%{_sysconfdir}/%{name}/%{name}.ini +install -Dm640 {conf/,%{buildroot}%{_sysconfdir}/%{name}/}ldap.toml +install -Dm644 {conf/,%{buildroot}%{_datadir}/%{name}/conf/}defaults.ini +install -m644 {conf/,%{buildroot}%{_datadir}/%{name}/conf/}sample.ini +cp -pr public %{buildroot}%{_datadir}/%{name}/ +install -d -m755 %{buildroot}%{_datadir}/%{name}/vendor +install -d -m755 %{buildroot}%{_datadir}/%{name}/tools +# phantomjs is used for rendering PNG images of graphs. The frontend asset +# build process downloadsa prebuilt x86_64 binary, which ends up in +# vendor/phantomjs/phantomjs. This is ugly but works for x86_64. It naturally +# will not work for other architectures, so instead we remove the phantomjs +# binary and install a symlink to the systemwide /usr/bin/phantomjs. +cp -pr tools/phantomjs %{buildroot}%{_datadir}/%{name}/tools/ +rm %{buildroot}%{_datadir}/%{name}/tools/phantomjs/phantomjs +ln -s %{_bindir}/phantomjs %{buildroot}%{_datadir}/%{name}/tools/phantomjs/phantomjs + +# Do *not* use %%fudpes -s -- this will result in grafana failing to load +# all the plugins (something in the plugin scanner can't cope with files +# in there being symlinks). +%fdupes %{buildroot}/%{_datadir} + +%check +#gotest github.com/grafana/grafana/pkg... + +%pre +%service_add_pre %{name}-server.service + +if [ $1 -eq 1 ]; then +if ! %{_bindir}/id %{GRAFANA_USER} &>/dev/null; then +echo -n "Create a new group %{GRAFANA_GROUP}:" +%{_sbindir}/groupadd -r %{GRAFANA_GROUP} ||: +echo "... done" +echo -n "Create a new user %{GRAFANA_USER}:" +%{_sbindir}/useradd -r -g %{GRAFANA_GROUP} -d %{_datadir}/%{name} \ +-s /sbin/nologin -c "%{GRAFANA_USER} user" %{GRAFANA_GROUP} +echo "... done"; +fi +fi + +%post +%{fillup_only -n %{name}-server} +%service_add_post %{name}-server.service + +%preun +%service_del_preun %{name}-server.service + +%postun +%service_del_postun %{name}-server.service +if [ $1 -eq 0 ]; then +userdel %{GRAFANA_USER} || logger "User \"%{GRAFANA_USER}\" could not be deleted." +groupdel %{GRAFANA_GROUP} || logger "Group \"%{GRAFANA_GROUP}\" could not be deleted." +rm -rf %{_localstatedir}/lib/%{name} +rm -rf %{_localstatedir}/log/%{name}; fi + +%files +%defattr(-,root,root) +%doc CHANGELOG* LICENSE* +%{_sbindir}/%{name}* +%{_sbindir}/rc%{name}-server +%{_unitdir}/%{name}-server.service +%{_fillupdir}/sysconfig.%{name}-server +%attr(0750,root,%{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name} +%attr(0750,root,%{GRAFANA_GROUP}) %dir %{_datadir}/%{name}/conf +%attr(0640,root,%{GRAFANA_GROUP}) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.ini +%attr(0640,root,%{GRAFANA_GROUP}) %config(noreplace) %{_sysconfdir}/%{name}/ldap.toml +%attr(0750,%{GRAFANA_USER},%{GRAFANA_GROUP}) %dir %{_localstatedir}/lib/%{name} +%attr(0750,%{GRAFANA_USER},%{GRAFANA_GROUP}) %dir %{_localstatedir}/lib/%{name}/plugins +%attr(0750,%{GRAFANA_USER},%{GRAFANA_GROUP}) %dir %{_localstatedir}/lib/%{name}/dashboards +%attr(0750,%{GRAFANA_USER},%{GRAFANA_GROUP}) %dir %{_localstatedir}/log/%{name} +%doc %{_datadir}/%{name}/conf/sample.ini +%config %{_datadir}/%{name}/conf/defaults.ini +%{_datadir}/%{name} + +%changelog