Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): topology incidents #2961

Merged
merged 49 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
53d6ccd
feat: add topology based incidents
shahargl Dec 30, 2024
65b24ae
feat: wip
shahargl Jan 1, 2025
75060d4
feat: wip
shahargl Jan 1, 2025
3c01cfe
feat: wip
shahargl Jan 1, 2025
00f6933
fix: logs
shahargl Jan 2, 2025
caee757
fix: CEL with quote
shahargl Jan 2, 2025
d061f22
fix: CEL with quote
shahargl Jan 3, 2025
61267ef
Feat/trace (#2967)
talboren Jan 3, 2025
69d20c5
fix: create incident
talboren Jan 3, 2025
5d75cd7
fix: fix
talboren Jan 3, 2025
91bed17
fix: fix
talboren Jan 3, 2025
6d7c654
feat: wip
shahargl Jan 4, 2025
2f92a8d
feat: Merge branch 'feature/apps' of https://github.com/palad-in/keep…
shahargl Jan 4, 2025
6246e83
fix: logs
shahargl Jan 4, 2025
619dfee
feat: wip
shahargl Jan 4, 2025
63e420f
fix: fix
talboren Jan 5, 2025
3c32f2a
fix: fix
talboren Jan 5, 2025
051afe6
fix: logs
shahargl Jan 5, 2025
1d75565
fix: fix
talboren Jan 5, 2025
16ae354
feat: wip
shahargl Jan 5, 2025
8c3baeb
feat: wip
shahargl Jan 5, 2025
2624a5d
fix: fix
talboren Jan 5, 2025
fe72a26
fix: f
talboren Jan 5, 2025
f3703ee
feat: Merge branch 'main' into feature/apps
shahargl Jan 5, 2025
06a5dc2
fix: service
shahargl Jan 5, 2025
c61dac6
fix: fix
talboren Jan 5, 2025
99bc6a1
feat: wip
shahargl Jan 5, 2025
8d20e85
feat: wip
shahargl Jan 5, 2025
7510fc2
feat: wip
shahargl Jan 6, 2025
bbddea7
fix: fix
talboren Jan 6, 2025
6bee9dc
fix: loop the loop
talboren Jan 6, 2025
721dcd0
fix: fix
talboren Jan 6, 2025
9584cba
Merge branch 'main' into feature/apps
talboren Jan 6, 2025
39098be
fix: fix
talboren Jan 6, 2025
da36339
fix: fix
talboren Jan 6, 2025
b783be5
feat: Merge branch 'main' into feature/apps
shahargl Jan 6, 2025
1a1c684
fix: fix
talboren Jan 6, 2025
8e4951c
feat: wip
shahargl Jan 6, 2025
e649fd6
feat: wip
shahargl Jan 6, 2025
5b609fb
fix: fix
talboren Jan 6, 2025
800f3dd
fix: fix
talboren Jan 6, 2025
1a499ff
fix: sorry
talboren Jan 7, 2025
0bccb91
feat: wip
shahargl Jan 7, 2025
d9c02c4
fix: fix
talboren Jan 7, 2025
1e6067d
feat: wip
shahargl Jan 8, 2025
3f19cbf
Merge branch 'main' into feature/apps
talboren Jan 12, 2025
dedc3ec
Merge branch 'main' into feature/apps
talboren Jan 13, 2025
8211706
Merge branch 'main' into feature/apps
talboren Jan 13, 2025
600544e
Merge branch 'main' into feature/apps
talboren Jan 13, 2025
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
Prev Previous commit
Next Next commit
feat: wip
  • Loading branch information
shahargl committed Jan 8, 2025
commit 1e6067d858bed0d8089f694e4fd6283e331ad566
Original file line number Diff line number Diff line change
@@ -272,7 +272,7 @@ export default function IncidentAlerts({ incident }: Props) {
selectedFingerprints={selectedFingerprints}
resetAlertsSelection={() => table.resetRowSelection()}
/>
<Card className="p-0 overflow-x-auto max-h-[calc(100vh-28rem)]">
<Card className="p-0 overflow-x-auto h-[calc(100vh-28rem)]">
<Table className="[&>table]:table-fixed">
<TableHead>
{table.getHeaderGroups().map((headerGroup) => (
2 changes: 1 addition & 1 deletion keep-ui/app/(keep)/incidents/[id]/chat/incident-chat.css
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@
}

.chat-container {
@apply max-h-[calc(100vh-28rem)] flex flex-col;
@apply h-[calc(100vh-28rem)] flex flex-col;
scroll-behavior: smooth;
}

12 changes: 12 additions & 0 deletions keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
from keep.contextmanager.contextmanager import ContextManager
from keep.providers.base.base_provider import BaseProvider
from keep.providers.models.provider_config import ProviderConfig, ProviderScope
from keep.providers.models.provider_method import ProviderMethod
from keep.providers.providers_factory import ProvidersFactory


@@ -91,6 +92,14 @@ class GcpmonitoringProvider(BaseProvider):
alias="Logs Viewer",
),
]
PROVIDER_METHODS = [
ProviderMethod(
name="query",
func_name="execute_query",
description="Query the GCP logs",
type="view",
)
]

def __init__(
self, context_manager: ContextManager, provider_id: str, config: ProviderConfig
@@ -136,6 +145,9 @@ def __generate_client(self) -> google.cloud.logging.Client:
)
return self._client

def execute_query(self, query: str, **kwargs):
return self._query(query, **kwargs)

def _query(
self,
filter: str,
Loading