VictoriaLogs integration and shared Integrations settings section #220
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!220
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-218-victorialogs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes: #218
Adds a read-only VictoriaLogs integration built on the Portainer pattern, and a Settings → Integrations section that holds both panels.
What's in it
victorialogs/config.ts): URL, authnone/bearer/basic, optional numericAccountID/ProjectID. The secret is write-only. A stored secret is reused only when the URL and auth mode are unchanged, and switching tononedeletes the stored secret and username. URL validation now lives inintegrations/url.ts(normalizeIntegrationUrl), shared with Portainer.getVersionreadsvm_app_version(falling back tovl_app_version) from/metrics. The capped body reader is nowreadBytesCappedinportainer/client.ts, so Portainer and VictoriaLogs use the same code.GET/PUT/DELETE /api/victorialogs/configandPOST /api/victorialogs/test. Save and test both check credentials withfield_names?query=*&start=5m.victorialogs_get_info,victorialogs_query,victorialogs_hits,victorialogs_field_names,victorialogs_field_values.5m(passed through unchanged).limitdefaults to 200 and is capped at 5000.local://victorialogs/…, with the last 200 lines returned inline.victorialogsEnabledflag (migration 023), off by default. Restricted (trigger) sessions treat these tools like the Portainer ones, both in the tool list and in thedecidePolicyshort-circuit.VictoriaLogsPanel,IntegrationsPanel, a workspace toggle, tool cards incomponents/tools/victorialogs/(reusingPortainerShell), and/previewfixtures.?section=portainernow opens Integrations.Deviation from the plan
VictoriaLogsHitsResulthas two extra fields,fieldandgroups, so the card can show per-value totals whenhitsis grouped byfield.bucketsholds the counts summed across all groups.Verification
bun teston the new victorialogs, routes, and Portainer suites: 57 pass.session-policy.test.ts"offers no git tools but keeps the comment tools". This branch doesn't touch that file, and the same test also failstypecheck(it passes 5 arguments where 6–7 are expected), so it was already broken before this change. Web and protocol typecheck clean./metricsversion metric name and the API response shapes are still unconfirmed, as the plan notes.omp-deck failed to handle this event: the agent's turn failed.
Details are in omp-deck under webhook delivery
0b0a2926-2954-48a4-8737-338d4a3c7716(session01a1a1eb-c044-7000-bbfe-af4a09a694c2).