Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV HUSKY=0

COPY web/package.json web/package-lock.json web/
COPY Makefile Makefile
RUN make install-frontend
RUN make install-frontend-ci

COPY web/ web/
RUN make build-frontend
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev-mcp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN make update-plugin-name

ENV I18N_NAMESPACE="plugin__monitoring-console-plugin"

RUN make install-frontend
RUN make install-frontend-ci
RUN make build-frontend

FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.24 as go-builder
Expand Down
57 changes: 0 additions & 57 deletions Dockerfile.konflux

This file was deleted.

2 changes: 1 addition & 1 deletion devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dev:
# Use the instance selector that CMO & helm add
app.kubernetes.io/component: monitoring-plugin
# Replace the container image with this dev-optimized image (allows to skip image building during development)
devImage: quay.io/rh-ee-pyurkovi/monitoring-plugin:devspace-2
devImage: quay.io/rh-ee-pyurkovi/monitoring-plugin:v4.19-devspace
# Sync files between the local filesystem and the development container
sync:
- path: ./web/dist:/opt/app-root/web/dist
Expand Down
132 changes: 70 additions & 62 deletions web/console-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
"href": "/monitoring/alerts",
"perspective": "admin",
"section": "observe",
"startsWith": [
"monitoring/alertrules",
"monitoring/silences",
"monitoring/incidents"
]
"startsWith": ["monitoring/alertrules", "monitoring/silences", "monitoring/incidents"]
}
},
{
Expand All @@ -20,10 +16,7 @@
"data-quickstart-id": "qs-nav-monitoring"
},
"id": "observe-virt-perspective",
"insertBefore": [
"compute-virt-perspective",
"usermanagement-virt-perspective"
],
"insertBefore": ["compute-virt-perspective", "usermanagement-virt-perspective"],
"name": "%console-app~Observe%",
"perspective": "virtualization-perspective"
},
Expand Down Expand Up @@ -163,10 +156,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/monitoring/targets",
"/monitoring/targets/:scrapeUrl"
],
"path": ["/monitoring/targets", "/monitoring/targets/:scrapeUrl"],
"component": {
"$codeRef": "TargetsPage.MpCmoTargetsPage"
}
Expand All @@ -176,9 +166,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/monitoring/query-browser"
],
"path": ["/monitoring/query-browser"],
"component": {
"$codeRef": "MetricsPage.MpCmoMetricsPage"
}
Expand All @@ -188,9 +176,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/monitoring/graph"
],
"path": ["/monitoring/graph"],
"component": {
"$codeRef": "PrometheusRedirectPage"
}
Expand All @@ -200,10 +186,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/monitoring/dashboards",
"/monitoring/dashboards/:dashboardName"
],
"path": ["/monitoring/dashboards", "/monitoring/dashboards/:dashboardName"],
"component": {
"$codeRef": "LegacyDashboardsPage.MpCmoLegacyDashboardsPage"
}
Expand All @@ -213,9 +196,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/monitoring/alertrules/:id"
],
"path": ["/monitoring/alertrules/:id"],
"component": {
"$codeRef": "AlertRulesDetailsPage.MpCmoAlertRulesDetailsPage"
}
Expand All @@ -225,9 +206,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/monitoring/alerts/:ruleID"
],
"path": ["/monitoring/alerts/:ruleID"],
"component": {
"$codeRef": "AlertsDetailsPage.MpCmoAlertsDetailsPage"
}
Expand All @@ -237,9 +216,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring"
],
"path": ["/virt-monitoring"],
"component": {
"$codeRef": "AlertingPage.MpCmoAlertingPage"
}
Expand Down Expand Up @@ -279,10 +256,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring/targets",
"/virt-monitoring/targets/:scrapeUrl"
],
"path": ["/virt-monitoring/targets", "/virt-monitoring/targets/:scrapeUrl"],
"component": {
"$codeRef": "TargetsPage.MpCmoTargetsPage"
}
Expand All @@ -292,9 +266,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring/query-browser"
],
"path": ["/virt-monitoring/query-browser"],
"component": {
"$codeRef": "MetricsPage.MpCmoMetricsPage"
}
Expand All @@ -304,9 +276,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring/graph"
],
"path": ["/virt-monitoring/graph"],
"component": {
"$codeRef": "PrometheusRedirectPage"
}
Expand All @@ -316,10 +286,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring/dashboards",
"/virt-monitoring/dashboards/:dashboardName"
],
"path": ["/virt-monitoring/dashboards", "/virt-monitoring/dashboards/:dashboardName"],
"component": {
"$codeRef": "LegacyDashboardsPage.MpCmoLegacyDashboardsPage"
}
Expand All @@ -329,9 +296,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring/alertrules/:id"
],
"path": ["/virt-monitoring/alertrules/:id"],
"component": {
"$codeRef": "AlertRulesDetailsPage.MpCmoAlertRulesDetailsPage"
}
Expand All @@ -341,9 +306,7 @@
"type": "console.page/route",
"properties": {
"exact": false,
"path": [
"/virt-monitoring/alerts/:ruleID"
],
"path": ["/virt-monitoring/alerts/:ruleID"],
"component": {
"$codeRef": "AlertsDetailsPage.MpCmoAlertsDetailsPage"
}
Expand All @@ -355,7 +318,7 @@
"exact": false,
"path": "/dev-monitoring/ns/:ns/alerts/:ruleID",
"component": {
"$codeRef": "DevRedirects.AlertRedirect"
"$codeRef": "AlertsDetailsPage.MpCmoAlertsDetailsPage"
}
}
},
Expand All @@ -365,7 +328,7 @@
"exact": false,
"path": "/dev-monitoring/ns/:ns/rules/:id",
"component": {
"$codeRef": "DevRedirects.RulesRedirect"
"$codeRef": "AlertRulesDetailsPage.MpCmoAlertRulesDetailsPage"
}
}
},
Expand All @@ -375,7 +338,7 @@
"exact": false,
"path": "/dev-monitoring/ns/:ns/silences/:id",
"component": {
"$codeRef": "DevRedirects.SilenceRedirect"
"$codeRef": "SilencesDetailsPage.MpCmoSilencesDetailsPage"
}
}
},
Expand All @@ -385,7 +348,7 @@
"exact": false,
"path": "/dev-monitoring/ns/:ns/silences/:id/edit",
"component": {
"$codeRef": "DevRedirects.SilenceEditRedirect"
"$codeRef": "SilenceEditPage.MpCmoSilenceEditPage"
}
}
},
Expand All @@ -395,18 +358,63 @@
"exact": false,
"path": "/dev-monitoring/ns/:ns/silences/~new",
"component": {
"$codeRef": "DevRedirects.SilenceNewRedirect"
"$codeRef": "SilenceCreatePage.MpCmoCreateSilencePage"
}
}
},
{
"type": "console.page/route",
"type": "console.tab",
"properties": {
"exact": false,
"path": "/dev-monitoring/ns/:ns/metrics",
"contextId": "dev-console-observe",
"name": "%plugin__monitoring-plugin~Silences%",
"href": "silences",
"component": {
"$codeRef": "SilencesPage.MpCmoSilencesPage"
}
}
},
{
"type": "console.tab",
"properties": {
"contextId": "dev-console-observe",
"name": "%plugin__monitoring-plugin~Metrics%",
"href": "metrics",
"component": {
"$codeRef": "MetricsPage.MpCmoDevMetricsPage"
}
}
},
{
"type": "console.tab",
"properties": {
"contextId": "dev-console-observe",
"name": "%plugin__monitoring-plugin~Alerts%",
"href": "alerts",
"component": {
"$codeRef": "AlertsPage.MpCmoAlertsPage"
}
}
},
{
"type": "console.tab",
"properties": {
"contextId": "dev-console-observe",
"name": "%plugin__monitoring-plugin~Alerting rules%",
"href": "alertrules",
"component": {
"$codeRef": "AlertRulesPage.MpCmoAlertRulesPage"
}
}
},
{
"type": "console.tab",
"properties": {
"contextId": "dev-console-observe",
"name": "%plugin__monitoring-plugin~Dashboards%",
"href": "",
"component": {
"$codeRef": "DevRedirects.MetricsRedirect"
"$codeRef": "LegacyDashboardsPage.MpCmoLegacyDevDashboardsPage"
}
}
}
]
]
1 change: 0 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@
"IncidentsPage": "./components/Incidents/IncidentsPage",
"TargetsPage": "./components/targets-page",
"PrometheusRedirectPage": "./components/redirects/prometheus-redirect-page",
"DevRedirects": "./components/redirects/dev-redirects",
"MonitoringContext": "./contexts/MonitoringContext"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Incidents/IncidentsDetailsRowTable.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
import { ResourceIcon, Timestamp, useActiveNamespace } from '@openshift-console/dynamic-plugin-sdk';
import { Bullseye, Spinner } from '@patternfly/react-core';
import { Link } from 'react-router-dom';
import { Link } from 'react-router-dom-v5-compat';
import { ALL_NAMESPACES_KEY, RuleResource } from '../utils';
import { useTranslation } from 'react-i18next';
import { getRuleUrl, usePerspective } from '../hooks/usePerspective';
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Incidents/IncidentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {
setIncidentsActiveFilters,
setIncidentsLastRefreshTime,
} from '../../store/actions';
import { useLocation } from 'react-router-dom';
import { useLocation } from 'react-router-dom-v5-compat';
import { changeDaysFilter } from './utils';
import { parsePrometheusDuration } from '../console/console-shared/src/datetime/prometheus';
import withFallback from '../console/console-shared/error/fallbacks/withFallback';
Expand Down
Loading