Commit Graph

673 Commits

Author SHA1 Message Date
MTRNord 0c85d32098 try to speedup starting the bots 2023-09-05 17:30:21 +02:00
MTRNord 54eea7972d Fix merge conflicts 2023-09-04 14:23:08 +02:00
Aminda Suomalainen bc0fc7c25a package.json: refer to https clone url (#90)
Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
2023-09-04 12:38:07 +01:00
dependabot[bot] c9cc5693ac Bump matrix-appservice-bridge from 8.1.1 to 8.1.2 (#71)
Bumps [matrix-appservice-bridge](https://github.com/matrix-org/matrix-appservice-bridge) from 8.1.1 to 8.1.2.
- [Release notes](https://github.com/matrix-org/matrix-appservice-bridge/releases)
- [Changelog](https://github.com/matrix-org/matrix-appservice-bridge/blob/8.1.2/CHANGELOG.md)
- [Commits](https://github.com/matrix-org/matrix-appservice-bridge/compare/8.1.1...8.1.2)

---
updated-dependencies:
- dependency-name: matrix-appservice-bridge
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 12:37:09 +01:00
Marcel 0de9ad3333 Add command that allows to easily set the Displayname of a bot (#91)
This adds the `displayname` command which just sets the displayname of the user.

-----

* Add command that allows to easily set the Displayname of a bot

* Only set the displayname once

* Add missing matrix interface adaptor and use CommandError

* Make displaynames with spaces work
2023-09-04 12:34:26 +01:00
Marcel f55d8a453d Add health endpoint to appservice and add metrics via prometheus (#70)
This adds a `/healthz` endpoint to the appservice which allows this to work more nicely in kubernetes.

It also adds some metrics for tracking the provisioning state.

Grafana result:
![image](https://github.com/Gnuxie/Draupnir/assets/1374914/9426c8e6-2c1c-469c-8902-1b9e2b6db529)

Note: The ts-ignore are sadly required since the `_getValue` method is not public :/ I didnt find another solution apart from tracking it maybe elsewhere.

* Add health endpoint to appservice and add metrics via prometheus

* Ensure that we dont have duplicate metrics when the appservice is registered multiple times

* Move gauge modifications to utils function

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix typo
2023-09-04 12:32:26 +01:00
Marcel 2ea8ddf864 Use the new help style on the appservice commands and add missing descriptions for the arguments (#69)
* Use the new help style on the appservice commands and add missing descriptions for the arguments

* Make the first letter of the table name uppercase in the help table
2023-09-04 12:30:50 +01:00
MTRNord 0204fb5139 Return the trace id instead of a random UUID if there is one available 2023-09-03 16:17:41 +02:00
MTRNord f03ad33e99 Make displaynames with spaces work 2023-09-03 15:48:45 +02:00
MTRNord 80e3578011 Make displaynames with spaces work 2023-09-03 15:44:47 +02:00
MTRNord b67bae2cd1 Add missing matrix interface adaptor and use CommandError 2023-09-03 15:37:22 +02:00
MTRNord 4f4487c58e Only set the displayname once 2023-09-03 15:18:55 +02:00
MTRNord 493f7a9d6b Make sure we catch the 404 2023-09-03 14:55:36 +02:00
MTRNord f72402852d Set displayname of admin bot 2023-09-03 14:51:24 +02:00
MTRNord b605430c77 Fix span issues 2023-09-03 14:42:41 +02:00
MTRNord eea8aecc76 Make sure we join the room before sending events 2023-09-03 14:40:48 +02:00
MTRNord 27518fff66 Add missing import 2023-09-03 14:12:21 +02:00
MTRNord 0d31539b96 Fix typos 2023-09-03 14:04:53 +02:00
MTRNord be7ebc64cf Use new system for displayname command 2023-09-03 14:02:48 +02:00
MTRNord b6dfaa62e4 Add displayname command 2023-09-03 13:00:37 +02:00
MTRNord 227117555f Fix store command for provisioning 2023-09-03 12:41:11 +02:00
MTRNord 217b9e46b5 Credit Gnuxie in the Status command 2023-09-03 12:32:15 +02:00
Marcel e8b7746b6c Update mjolnir.yml 2023-09-03 12:17:19 +02:00
MTRNord b8c62bfcd1 Fix imports 2023-09-03 11:50:53 +02:00
MTRNord 2d12e5cbc0 Fix tracing causing issues 2023-09-03 11:50:20 +02:00
MTRNord 0add0aa78c Fix repo 2023-09-03 11:37:40 +02:00
MTRNord f890c59974 Remove possibly breaking span 2023-09-03 11:36:53 +02:00
MTRNord 88b4b1e44e Add tracing ids to errors and warnings in the code 2023-09-02 23:36:19 +02:00
MTRNord 1ecd7c0d1f Introduce enums to make sure we dont type the attributes across the code 2023-09-02 23:15:05 +02:00
MTRNord 61e81b21de Cleanup tracer code 2023-09-02 23:03:34 +02:00
MTRNord 9159043872 Fix filter 2023-09-02 22:28:57 +02:00
MTRNord a526fda72b Make sure we use the span 2023-09-02 22:23:55 +02:00
MTRNord e5c50ec362 Fix commands 2023-09-02 22:19:41 +02:00
MTRNord 5a7ac6fa54 Fix filter for healthcheck traces 2023-09-02 21:56:35 +02:00
MTRNord e587279c22 Fix filter for healthcheck traces 2023-09-02 21:51:49 +02:00
MTRNord 76e3ba9180 Add messages when provisioning 2023-09-02 19:34:56 +02:00
MTRNord 96e331b3e9 Update matrix-appservice fork 2023-09-02 18:39:20 +02:00
MTRNord 847e9038b1 Update matrix-appservice fork 2023-09-02 18:34:00 +02:00
MTRNord 0f95a92168 Update matrix-appservice fork 2023-09-02 18:24:13 +02:00
MTRNord e513b00785 Update matrix-appservice fork 2023-09-02 18:16:22 +02:00
MTRNord d410af5e4d Update matrix-appservice fork 2023-09-02 18:11:28 +02:00
MTRNord ce03a84d73 Ensure we install git in the docker 2023-09-02 17:05:00 +02:00
MTRNord 762938a8ba Tracing for the appservice handler 2023-09-02 17:01:06 +02:00
MTRNord 7333232747 Do not preprend constructor name. This seems to mess 2023-09-02 16:24:15 +02:00
MTRNord 748e0a5399 Add missing spread operators 2023-09-02 16:13:58 +02:00
MTRNord df959ad720 Move to async/sync aware ts5 decorators 2023-09-02 16:05:52 +02:00
MTRNord d5e25505a2 Provision draupnirs 2023-09-01 21:33:18 +02:00
MTRNord be1d3b8990 Update matrix-appservice-bridge 2023-09-01 19:19:14 +02:00
MTRNord b36fd2d0fc Small fixes 2023-09-01 19:17:37 +02:00
MTRNord 4bd1990507 Cleanup traces further 2023-09-01 19:15:31 +02:00