diff --git a/misc/convert-dash-to-PMM.py b/misc/convert-dash-to-PMM.py index a5bd74d921..504f8ff1c0 100755 --- a/misc/convert-dash-to-PMM.py +++ b/misc/convert-dash-to-PMM.py @@ -8,7 +8,6 @@ '${DS_METRICS}': 'Metrics', '${DS_PTSUMMARY}': 'PTSummary', '${DS_CLICKHOUSE}': 'ClickHouse', - '${DS_PROMETHEUS_ALERTMANAGER$': 'Prometheus AlertManager', '${DS_PROMETHEUS}': 'Metrics', 'Prometheus': 'Metrics' } diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/CHANGELOG.md b/panels/camptocamp-prometheus-alertmanager-datasource/CHANGELOG.md deleted file mode 100644 index 9fbfab2392..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/CHANGELOG.md +++ /dev/null @@ -1,58 +0,0 @@ -## 1.0.0 (Feb 12, 2021) - -- IMPROVEMENTS - - * Rewrite plugin to match latest dev standards (Typescript, Yarn) - * Add support of latest Grafana versions - -## 0.0.8 (Apr 22, 2020) - -- IMPROVEMENTS - - * Add support of variable templating ([#55](https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/pull/55)) - -- BUGFIX - - * Fix datasource request ([#73](https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/pull/73)) - -## 0.0.7 (Jan 25, 2019) - -- IMPROVEMENTS - - * Allow undefined severity labels ([#44](https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/issues/44)) - * Allow usage of multi-values variables ([#40](https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/issues/40)) - -- BUGFIX - - * Fix blank severity column ([#31](https://github.com/camptocamp/grafana-prometheus-alertmanager-datasource/issues/31)) - -## 0.0.6 (May 22, 2018) - - * Use Apache License 2.0 - * Fix severity labels struct (#26) - -## 0.0.5 (May 23, 2018) - -- Datasource: - - * Display annotations and labels in separate columns - * Add a selector in query editor to choose the columns to display - -## 0.0.4 (March 29, 2018) - -- Datasource: - - * Allow manual definition of severity levels - * Fix templating and add support of All and Multi variables - -## 0.0.3 (December 01, 2017) - -- Datasource: - - * Add templating support - -## 0.0.2 (December 01, 2017) - -- Datasource: - - * Add support annotations diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/LICENSE b/panels/camptocamp-prometheus-alertmanager-datasource/LICENSE deleted file mode 100644 index d32489b265..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2017 Camptocamp SA - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/MANIFEST.txt b/panels/camptocamp-prometheus-alertmanager-datasource/MANIFEST.txt deleted file mode 100644 index baf4391e8b..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/MANIFEST.txt +++ /dev/null @@ -1,35 +0,0 @@ - ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - -{ - "manifestVersion": "2.0.0", - "signatureType": "community", - "signedByOrg": "camptocamp", - "signedByOrgName": "camptocamp", - "plugin": "camptocamp-prometheus-alertmanager-datasource", - "version": "1.0.0", - "time": 1622191623287, - "keyId": "7e4d0c6a708866e7", - "files": { - "module.js.map": "27128d3401e8627e13a91d1bcc2685985498612d93d705f7522042aa7e122e52", - "README.md": "6da412b443f386ce50ae6e997010d5ae33d6dcae8096faa0375d642f0591aa1c", - "img/json-logo.svg": "46391ecc7193b255fc8569cdd4920844b70feb1f7a9defd0658e70ace5928094", - "img/overview.png": "2429541675a221397e910a7f19cc5cf5aa914cb6f8cb7dd341521566a9e830d1", - "img/table.png": "a828db899e56d878307fdf61b492505248dfd9bf249479263f96e47bfccdefa5", - "LICENSE": "9a4b2ed0be524afe30376bb71435bc1b1c6cdcb058abe7206154caa92bc50cc6", - "module.js": "94c715553df3f95b9bcc5710e0d5e435bdfb705652ee93d5ecbf9bddb85d546c", - "CHANGELOG.md": "5316055bf65e83dba57f4ae5cba708a18e0239190635459e23201de60b6b99d3", - "plugin.json": "658a658fab9a8d3f4170944cb60427adc797b2e6aa2532c90eb0c0e96582734e" - } -} ------BEGIN PGP SIGNATURE----- -Version: OpenPGP.js v4.10.1 -Comment: https://openpgpjs.org - -wqAEARMKAAYFAmCwrgcACgkQfk0ManCIZueiVgIFEEBtcjBg05y9cFxlIPBd -/NnS99U/NOr27kNLVxd5PA6GYRhzVio/DDnmq63ff2CoJCBVnc/KyWi+uwH+ -S0xZAEICBju3YVTX/75s4VwjPYZgTs5xPUJL/+hT3J4uc4Ebnyrt1SJ7uWLg -Na0Py53QHY5sj0N6u8wwAw3T7+KWyo4eNo7w -=ad+C ------END PGP SIGNATURE----- diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/README.md b/panels/camptocamp-prometheus-alertmanager-datasource/README.md deleted file mode 100644 index d382f9d2d8..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# Grafana datasource for Prometheus Alertmanager - -This datasource lets you use the Alertmanager's API of Prometheus to create dashboards in Grafana. - -![Overview](https://raw.githubusercontent.com/camptocamp/grafana-prometheus-alertmanager-datasource/master/images/overview.png) - -# Usage - -## Query Editor - -The following options are available: - -### Receiver - -Only retrieve alerts that match the defined receiver. If left empty, all receivers will be matched. - -### Filters - -Into the query expression field, you can set filters. - -Examples: - - - `alertname="HostDown"` will only display alerts which has the label *alertname* equals to "HostDown". - - `severity="1"` will only display alerts which has the label *severity* equals to "1". - -You can also set multiple filters like `alertname="DiskFull",df="opt"`. - -### Active - -Whether the alerts gathered should be active. - -### Silenced - -Whether the alerts gathered should be silenced. - -### Inhibited - -Whether the alerts gathered should be inhibited. - -![Parameters](https://raw.githubusercontent.com/camptocamp/grafana-prometheus-alertmanager-datasource/master/images/table.png) - -# Development Setup - -Usage of Yarn is encouraged to build. - -```shell -$ yarn install -$ yarn run build -``` diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/img/json-logo.svg b/panels/camptocamp-prometheus-alertmanager-datasource/img/json-logo.svg deleted file mode 100644 index 67a06cb7ff..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/img/json-logo.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - -JSON logo - - - - - - - - diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/img/overview.png b/panels/camptocamp-prometheus-alertmanager-datasource/img/overview.png deleted file mode 100644 index fb7bad18ae..0000000000 Binary files a/panels/camptocamp-prometheus-alertmanager-datasource/img/overview.png and /dev/null differ diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/img/table.png b/panels/camptocamp-prometheus-alertmanager-datasource/img/table.png deleted file mode 100644 index a33ad502ca..0000000000 Binary files a/panels/camptocamp-prometheus-alertmanager-datasource/img/table.png and /dev/null differ diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/module.js b/panels/camptocamp-prometheus-alertmanager-datasource/module.js deleted file mode 100644 index 53367aef33..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/module.js +++ /dev/null @@ -1,2 +0,0 @@ -define(["react","@grafana/data","@grafana/ui","@grafana/runtime"],(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=8)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){var r=n(5),o=n(6);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var a={insert:"head",singleton:!1},i=(r(o,a),o.locals?o.locals:{});e.exports=i},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function u(e){for(var t=-1,n=0;n0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function p(){for(var e=[],t=0;t0&&(n.headers.Authorization=t.basicAuth),n}return c(t,e),t.prototype.query=function(e){return l(this,void 0,Promise,(function(){var t,n=this;return f(this,(function(o){return t=e.targets.map((function(t){if(t.hide)return Promise.resolve(new r.MutableDataFrame);var o=[],a=t.active?"true":"false",i=t.silenced?"true":"false",u=t.inhibited?"true":"false";return o.push("active="+a),o.push("silenced="+i),o.push("inhibited="+u),void 0!==t.receiver&&t.receiver.length>0&&o.push("receiver="+t.receiver),void 0!==t.filters&&t.filters.length>0&&(t.filters=Object(h.getTemplateSrv)().replace(t.filters,e.scopedVars,n.interpolateQueryExpr),t.filters.split(",").forEach((function(e){o.push("filter="+encodeURIComponent(e))}))),n.doRequest({url:n.url+"/api/v2/alerts?"+o.join("&"),method:"GET"}).then((function(e){return e.toPromise()})).then((function(e){return n.retrieveData(t,e)}))})),[2,Promise.all(t).then((function(e){return{data:e}}))]}))}))},t.prototype.testDatasource=function(){return l(this,void 0,void 0,(function(){return f(this,(function(e){return[2,this.doRequest({url:this.url,method:"GET"}).then((function(e){return e.toPromise().then((function(e){return e.ok?{status:"success",message:"Datasource is working",title:"Success"}:{status:"error",message:"Datasource is not working: "+e.data,title:"Error"}}))}))]}))}))},t.prototype.doRequest=function(e){return l(this,void 0,void 0,(function(){return f(this,(function(t){return e.withCredentials=this.withCredentials,e.headers=this.headers,[2,Object(h.getBackendSrv)().fetch(e)]}))}))},t.prototype.buildDataFrame=function(e,t){var n=[{name:"Time",type:r.FieldType.time}];if(t.length>0){var o=t.map((function(e){return Object.keys(e.annotations)})).reduce((function(e){return e.flat()})),a=t.map((function(e){return Object.keys(e.labels)})).reduce((function(e){return e.flat()}));p(new Set(p(o,a,["alertstatus","alertstatus_code"]))).forEach((function(e){n.push({name:e,type:r.FieldType.string})}))}return new r.MutableDataFrame({refId:e,fields:n})},t.prototype.parseAlertAttributes=function(e,t){var n=[e.startsAt];return t.slice(1).forEach((function(t){if("alertstatus"!==t.name){if("alertstatus_code"===t.name)switch(e.status.state){case"unprocessed":return void n.push("0");case"active":return void n.push("1");case"suppressed":return void n.push("2");default:return void n.push("")}n.push(e.annotations[t.name]||e.labels[t.name]||"")}else n.push(e.status.state||"")})),n},t.prototype.retrieveData=function(e,t){var n=this,r=this.buildDataFrame(e.refId,t.data);return t.data.forEach((function(e){var t=n.parseAlertAttributes(e,r.fields);r.appendRow(t)})),Promise.resolve(r)},t.prototype.interpolateQueryExpr=function(e,t){if(void 0===e&&(e=[]),!t.multi&&!t.includeAll)return function(e){return"string"==typeof e?e.replace(/\\/g,"\\\\").replace(/'/g,"\\\\'"):e}(e);if("string"==typeof e)return m(e);var n=e.map((function(e){return m(e)}));return 1===n.length?n[0]:"("+n.join("|")+")"},t}(r.DataSourceApi);function m(e){return"string"==typeof e?e.replace(/\\/g,"\\\\\\\\").replace(/[$^*{}\[\]\'+?()|]/g,"\\\\$&"):e}n(4);var g=o.LegacyForms.FormField,y=o.LegacyForms.Switch,b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onReceiverChange=function(e){var n=t.props,r=n.onChange,o=n.query,a=n.onRunQuery;r(s(s({},o),{receiver:e.target.value})),a()},t.onFiltersChange=function(e){var n=t.props,r=n.onChange,o=n.query,a=n.onRunQuery;r(s(s({},o),{filters:e.target.value})),a()},t.onActiveChange=function(){var e=t.props,n=e.onChange,r=e.query,o=e.onRunQuery;r.active=!r.active,n(s({},r)),o()},t.onSilencedChange=function(){var e=t.props,n=e.onChange,r=e.query,o=e.onRunQuery;r.silenced=!r.silenced,n(s({},r)),o()},t.onInhibitedChange=function(){var e=t.props,n=e.onChange,r=e.query,o=e.onRunQuery;r.inhibited=!r.inhibited,n(s({},r)),o()},t}return c(t,e),t.prototype.render=function(){var e=this.props.query,t=e.receiver,n=e.filters,r=e.active,o=e.silenced,a=e.inhibited;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"gf-form-inline"},i.a.createElement("div",{className:"gf-form"},i.a.createElement(g,{value:t,inputWidth:10,onChange:this.onReceiverChange,labelWidth:5,label:"Receiver"})),i.a.createElement("div",{className:"gf-form"},i.a.createElement(g,{value:n,inputWidth:30,onChange:this.onFiltersChange,labelWidth:15,label:"Filters (comma separated key=value)"})),i.a.createElement("div",{className:"gf-form"},i.a.createElement(y,{label:"Active",checked:r,onChange:this.onActiveChange})),i.a.createElement("div",{className:"gf-form"},i.a.createElement(y,{label:"Silenced",checked:o,onChange:this.onSilencedChange})),i.a.createElement("div",{className:"gf-form"},i.a.createElement(y,{label:"Inhibited",checked:a,onChange:this.onInhibitedChange}))))},t}(a.PureComponent);n.d(t,"plugin",(function(){return w}));var C=function(){function e(){}return e.templateUrl="partials/annotations.editor.html",e}(),w=new r.DataSourcePlugin(v).setAnnotationQueryCtrl(C).setConfigEditor((function(e){var t=e.options,n=e.onOptionsChange;return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.DataSourceHttpSettings,{defaultUrl:"http://localhost:8080",dataSourceConfig:t,showAccessOptions:!0,onChange:n}))})).setQueryEditor(b)}])})); -//# sourceMappingURL=module.js.map \ No newline at end of file diff --git a/panels/camptocamp-prometheus-alertmanager-datasource/module.js.map b/panels/camptocamp-prometheus-alertmanager-datasource/module.js.map deleted file mode 100644 index e0c75f2d83..0000000000 --- a/panels/camptocamp-prometheus-alertmanager-datasource/module.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///external \"@grafana/data\"","webpack:///external \"@grafana/ui\"","webpack:///external \"@grafana/runtime\"","webpack:///./css/json-editor.css?e7e7","webpack:///../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack:///./css/json-editor.css","webpack:///../node_modules/css-loader/dist/runtime/api.js","webpack:///../node_modules/tslib/tslib.es6.js","webpack:///./DataSource.ts","webpack:///./QueryEditor.tsx","webpack:///./module.ts","webpack:///./ConfigEditor.tsx"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__1__","__WEBPACK_EXTERNAL_MODULE__2__","__WEBPACK_EXTERNAL_MODULE__3__","api","content","default","options","exported","locals","memo","isOldIE","Boolean","window","document","all","atob","getTarget","target","styleTarget","querySelector","HTMLIFrameElement","contentDocument","head","e","stylesInDom","getIndexByIdentifier","identifier","result","length","modulesToDom","list","idCountMap","identifiers","item","id","base","count","concat","index","obj","css","media","sourceMap","references","updater","push","addStyle","insertStyleElement","style","createElement","attributes","nonce","keys","forEach","setAttribute","insert","Error","appendChild","textStore","replaceText","replacement","filter","join","applyToSingletonTag","remove","styleSheet","cssText","cssNode","createTextNode","childNodes","removeChild","insertBefore","applyToTag","removeAttribute","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","singleton","singletonCounter","update","styleIndex","parentNode","removeStyleElement","newObj","lastIdentifiers","newList","toString","newLastIdentifiers","_i","_index","splice","___CSS_LOADER_API_IMPORT___","useSourceMap","this","map","cssMapping","sourceMapping","base64","data","sourceURLs","sources","source","sourceRoot","cssWithMappingToString","mediaQuery","dedupe","alreadyImportedModules","extendStatics","b","setPrototypeOf","__proto__","Array","__extends","__","constructor","__assign","assign","arguments","apply","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","done","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","iterator","v","op","TypeError","pop","__read","ar","error","__spread","instanceSettings","url","undefined","withCredentials","headers","basicAuth","query","promises","targets","hide","params","queryActive","active","querySilenced","silenced","queryInhibited","inhibited","receiver","filters","replace","scopedVars","interpolateQueryExpr","split","doRequest","method","request","retrieveData","testDatasource","response","toPromise","ok","status","message","title","fetch","buildDataFrame","refId","fields","type","time","annotations","alert","reduce","labels","Set","attribute","string","parseAlertAttributes","row","startsAt","slice","element","state","frame","appendRow","variable","multi","includeAll","alertmanagerRegularEscape","alertmanagerSpecialRegexEscape","escapedValues","val","FormField","Switch","onReceiverChange","event","props","onChange","onRunQuery","onFiltersChange","onActiveChange","onSilencedChange","onInhibitedChange","render","className","inputWidth","labelWidth","checked","templateUrl","setAnnotationQueryCtrl","GenericAnnotationsQueryCtrl","setConfigEditor","onOptionsChange","defaultUrl","dataSourceConfig","showAccessOptions","setQueryEditor"],"mappings":"wGACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC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,KAAKiI,gBACfO,WAAY,GACZ1F,MAAM,yCAGV,yBAAKwF,UAAU,WACb,kBAACX,EAAM,CAAC7E,MAAM,SAAS2F,QAASjE,EAAQuD,SAAU/H,KAAKkI,kBAEzD,yBAAKI,UAAU,WACb,kBAACX,EAAM,CAAC7E,MAAM,WAAW2F,QAAS/D,EAAUqD,SAAU/H,KAAKmI,oBAE7D,yBAAKG,UAAU,WACb,kBAACX,EAAM,CAAC7E,MAAM,YAAY2F,QAAS7D,EAAWmD,SAAU/H,KAAKoI,wBAMzE,EAvEA,CAAiC,iBCdjC,uCAMA,+BAEA,OADS,EAAAM,YAAc,mCACvB,EAFA,GAIa,EAAS,IAAI,mBAAsE,GAC7FC,uBAAuBC,GACvBC,iBCH+C,SAAC,G,IAAEvO,EAAO,UAAEwO,EAAe,kBAC3E,OACE,oCACE,kBAAC,yBAAsB,CACrBC,WAAY,wBACZC,iBAAkB1O,EAClB2O,mBAAmB,EACnBlB,SAAUe,QDHfI,eAAe","file":"module.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 8);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","var api = require(\"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n var content = require(\"!!../../node_modules/css-loader/dist/cjs.js??ref--8-1!../../node_modules/postcss-loader/src/index.js??ref--8-2!../../node_modules/sass-loader/dist/cjs.js!./json-editor.css\");\n\n content = content.__esModule ? content.default : content;\n\n if (typeof content === 'string') {\n content = [[module.id, content, '']];\n }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\nvar exported = content.locals ? content.locals : {};\n\n\n\nmodule.exports = exported;","\"use strict\";\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n var attributes = options.attributes || {};\n\n if (typeof attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n attributes.nonce = nonce;\n }\n }\n\n Object.keys(attributes).forEach(function (key) {\n style.setAttribute(key, attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.media ? \"@media \".concat(obj.media, \" {\").concat(obj.css, \"}\") : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n } else {\n style.removeAttribute('media');\n }\n\n if (sourceMap && btoa) {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of