-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MassTransit retry functionality (#2220)
* don't show unmonitored endpoints on the monitoring screen, even if they have failed messages * show masstransit message if pending retries is enabled * Adding masstransit connector tab * Hide "Open in ServiceInsight" and "Flow diagram" in ServicePulse * replace non-production references for masstransit with early access * allow for no monitoring url in settings * Don't add proxy config for monitoring if monitoring is disabled --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: John Simons <john.simons@particular.net>
- Loading branch information
1 parent
d6a0b3a
commit 97543c0
Showing
26 changed files
with
449 additions
and
132 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
99 changes: 99 additions & 0 deletions
99
src/Frontend/src/components/configuration/MassTransitConnector.vue
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<script setup lang="ts"> | ||
import { useConfiguration } from "@/composables/configuration"; | ||
import moment from "moment"; | ||
const configuration = useConfiguration(); | ||
// "Wed, Jan 15th 2025 10:56:21 +10:00", | ||
function formatDate(date: string) { | ||
return moment(date).local().format("LLLL"); //.format("ddd, MMM Do YYYY HH:mm:ss Z"); | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="box" v-if="configuration?.mass_transit_connector !== undefined"> | ||
<div class="row margin-bottom-10"> | ||
<h4> | ||
Connector Version: <span class="version-format">{{ configuration.mass_transit_connector.version }}</span> | ||
</h4> | ||
</div> | ||
<div class="row margin-bottom-10"> | ||
<h4>List of error queues configured in the connector.</h4> | ||
<div class="queues-container"> | ||
<div class="row margin-gap hover-highlight" v-for="queue in configuration.mass_transit_connector.error_queues" :key="queue.name"> | ||
<div :title="queue.name">{{ queue.name }}</div> | ||
<div class="error-color" v-if="!queue.ingesting">Not ingesting</div> | ||
<div class="ok-color" v-else>Ok</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<h4>The entries below are the most recent warning and error-level events recorded on the ServiceControl Connector.</h4> | ||
<div class="logs-container"> | ||
<div class="row margin-gap hover-highlight" v-for="log in [...configuration.mass_transit_connector.logs].reverse()" :key="log.date"> | ||
<div class="col-2">{{ formatDate(log.date) }}</div> | ||
<div class="col-1" :class="`${log.level.toLowerCase()}-color`">{{ log.level }}</div> | ||
<div class="col-9" :class="`${log.level.toLowerCase()}-color`"> | ||
<pre>{{ log.message }}</pre> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="box" v-else> | ||
<p>MassTransit Connector for ServiceControl is not configured.</p> | ||
<p><a target="_blank" href="https://particular.net/learn-more-about-masstransit-connector">Learn more about the MassTransit Connector.</a></p> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.hover-highlight:hover { | ||
background-color: #ededed; | ||
} | ||
.margin-gap { | ||
margin-bottom: 3px; | ||
} | ||
.queues-container { | ||
max-width: 100%; | ||
width: fit-content; | ||
padding: 0.75rem; | ||
} | ||
.queues-container .row { | ||
display: grid; | ||
grid-template-columns: 5fr minmax(10em, 1fr); | ||
} | ||
.queues-container .row div { | ||
overflow-wrap: anywhere; | ||
} | ||
.logs-container { | ||
padding: 0.75rem; | ||
} | ||
.version-format { | ||
font-weight: bold; | ||
} | ||
.box > .row:not(:last-child) { | ||
padding-bottom: 0.5rem; | ||
border-bottom: 1px solid #ccc; | ||
margin-bottom: 0.5rem; | ||
} | ||
.logs-container pre { | ||
all: revert; | ||
margin: 0; | ||
font-size: 0.9rem; | ||
overflow-wrap: break-word; | ||
text-wrap: auto; | ||
} | ||
.warning-color { | ||
color: var(--bs-warning); | ||
} | ||
.error-color { | ||
color: var(--bs-danger); | ||
} | ||
.ok-color { | ||
color: var(--bs-success); | ||
} | ||
</style> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.