diff --git a/frontend/src/component/project/Project/DeleteProject/DeleteProjectDialogue.tsx b/frontend/src/component/project/Project/DeleteProject/DeleteProjectDialogue.tsx
index 6ab5dabcf95a..e60ab000b642 100644
--- a/frontend/src/component/project/Project/DeleteProject/DeleteProjectDialogue.tsx
+++ b/frontend/src/component/project/Project/DeleteProject/DeleteProjectDialogue.tsx
@@ -66,7 +66,7 @@ export const DeleteProjectDialogue = ({
- project with all of its settings
- all feature flags archived in it
- - all API keys scoped to only to this project
+ - all API keys scoped only to this project
all actions configured for it}
diff --git a/src/lib/metrics.ts b/src/lib/metrics.ts
index d958d071ef18..61a515c7d17f 100644
--- a/src/lib/metrics.ts
+++ b/src/lib/metrics.ts
@@ -19,6 +19,10 @@ import {
CLIENT_METRICS,
CLIENT_REGISTER,
PROJECT_ENVIRONMENT_REMOVED,
+ PROJECT_CREATED,
+ PROJECT_ARCHIVED,
+ PROJECT_REVIVED,
+ PROJECT_DELETED,
} from './types/events';
import type { IUnleashConfig } from './types/option';
import type { ISettingStore, IUnleashStores } from './types/stores';
@@ -315,6 +319,12 @@ export default class MetricsMonitor {
labelNames: ['stage'],
});
+ const projectActionsCounter = createCounter({
+ name: 'project_actions_count',
+ help: 'Count project actions',
+ labelNames: ['action'],
+ });
+
const projectEnvironmentsDisabled = createCounter({
name: 'project_environments_disabled',
help: 'How many "environment disabled" events we have received for each project',
@@ -845,6 +855,18 @@ export default class MetricsMonitor {
environmentType: 'n/a',
});
});
+ eventStore.on(PROJECT_CREATED, () => {
+ projectActionsCounter.labels({ action: PROJECT_CREATED }).inc();
+ });
+ eventStore.on(PROJECT_ARCHIVED, () => {
+ projectActionsCounter.labels({ action: PROJECT_ARCHIVED }).inc();
+ });
+ eventStore.on(PROJECT_REVIVED, () => {
+ projectActionsCounter.labels({ action: PROJECT_REVIVED }).inc();
+ });
+ eventStore.on(PROJECT_DELETED, () => {
+ projectActionsCounter.labels({ action: PROJECT_DELETED }).inc();
+ });
const logger = config.getLogger('metrics.ts');
eventBus.on(CLIENT_METRICS, (metrics: IClientMetricsEnv[]) => {