add alertname in labels when annotations.alertname#1801
Merged
Conversation
Update labels dict when custom alertname exists in annotations
headphonejames
added a commit
to G-Research/alerta
that referenced
this pull request
Mar 1, 2023
* Bump copyright date in license * precommit hook flake8 has moved to github * Bump info and deps for Release 9 * build(deps): bump flask-compress from 1.12 to 1.13 (alerta#1770) Bumps [flask-compress](https://github.com/colour-science/flask-compress) from 1.12 to 1.13. - [Release notes](https://github.com/colour-science/flask-compress/releases) - [Changelog](https://github.com/colour-science/flask-compress/blob/master/CHANGELOG.md) - [Commits](colour-science/flask-compress@v1.12...v1.13) --- updated-dependencies: - dependency-name: flask-compress dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump python-ldap from 3.4.2 to 3.4.3 (alerta#1772) Bumps [python-ldap](https://github.com/python-ldap/python-ldap) from 3.4.2 to 3.4.3. - [Release notes](https://github.com/python-ldap/python-ldap/releases) - [Commits](python-ldap/python-ldap@python-ldap-3.4.2...python-ldap-3.4.3) --- updated-dependencies: - dependency-name: python-ldap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump cryptography from 38.0.1 to 39.0.1 (alerta#1802) Bumps [cryptography](https://github.com/pyca/cryptography) from 38.0.1 to 39.0.1. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@38.0.1...39.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps-dev): bump pylint from 2.15.2 to 2.16.2 (alerta#1805) Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.2 to 2.16.2. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](pylint-dev/pylint@v2.15.2...v2.16.2) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump werkzeug from 2.2.2 to 2.2.3 (alerta#1807) Bumps [werkzeug](https://github.com/pallets/werkzeug) from 2.2.2 to 2.2.3. - [Release notes](https://github.com/pallets/werkzeug/releases) - [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst) - [Commits](pallets/werkzeug@2.2.2...2.2.3) --- updated-dependencies: - dependency-name: werkzeug dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump pyjwt from 2.4.0 to 2.6.0 (alerta#1779) Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.4.0 to 2.6.0. - [Release notes](https://github.com/jpadilla/pyjwt/releases) - [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst) - [Commits](jpadilla/pyjwt@2.4.0...2.6.0) --- updated-dependencies: - dependency-name: pyjwt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump sentry-sdk[flask] from 1.9.8 to 1.16.0 (alerta#1810) Bumps [sentry-sdk[flask]](https://github.com/getsentry/sentry-python) from 1.9.8 to 1.16.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-python@1.9.8...1.16.0) --- updated-dependencies: - dependency-name: sentry-sdk[flask] dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(plugin): add alertname in labels when annotations.alertname (alerta#1801) Update labels dict when custom alertname exists in annotations * fix(plugin): fixes an issue if the last plugin in the order (alerta#1798) returns "None" the previous plugin data are not commited to database. * Use group parameter of top10 API endpoints (alerta#1752) * Use group parameter for topn count and topn flapping. * Use group for get_topn_standing. * fix(auth): auth bypass via registering when AUTH_PROVIDER != basic (alerta#1782) * tests(perf): fix performance tests * tests(perf): fix performance tests * try * try2 * try3 * try4 * try5 * pg * lh * healthcheck * tests(perf): fix broken performance tests * Bump psycopg2 to version 2.9.5 * CodeQL Action v1 is now deprecated * fix(security): do not expose exception errors to end users (alerta#1811) * lowercase repository for G-Research --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Nick Satterly <nfsatterly@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mika <michael.ricart@0w.tf> Co-authored-by: Esben Laursen <hyber@hyber.dk> Co-authored-by: Jason <jason@deadtreepages.com> Co-authored-by: Emil Lengman <bubbalubb95@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update labels dict when custom alertname exists in annotations