agentsclimarketplace

Logging monitoring

Skill event4u-app/agent-config/src/skills/logging-monitoring

Universal AI Agent OS — audited skills, governance rules, replayable state. One contract, every host agent.

Install
npx -y skills add event4u-app/agent-config --skill logging-monitoring

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when working with logging or monitoring — Sentry error tracking, Grafana/Loki log aggregation, structured logging channels, or monitoring helpers.

SKILL.md

3.2 KB, as published. Nobody here has run it

logging-monitoring

When to use

Use when adding logging, configuring monitoring stack, or integrating Sentry/Grafana/Loki.

Do NOT use when:

  • Creating Grafana dashboards (use grafana skill)
  • Dashboard design decisions (use dashboard-design skill)

Procedure: Add logging or monitoring

  1. Read the framework's logging config for available channels (config/logging.php in Laravel, LOGGING in Django, winston/pino in Node).
  2. Check for Grafana module: app/Modules/Grafana/.
  3. Read agents/ docs for module-specific logging.

Monitoring stack

ToolPurposeIntegration
SentryError trackingsentry/sentry-laravel, MonitoringHelper
GrafanaDashboardsConnected to Loki
LokiLog aggregationitspire/monolog-loki via Monolog
SlackAlert notificationsWebhook for error-level

Log channels

ChannelPurpose
stack_without_slackDaily file + errorlog (no Slack)
slackError alerts to Slack
lokiSend logs to Grafana Loki
loki_import_*Import-specific Loki with custom labels
dailyRotating file logs

Loki labels

'globalLabels' => ['app' => '{project}', 'service' => '{service}', 'env' => $env],

The service label differentiates log types in Grafana queries.

Config flags

Env VariablePurposeDefault
LOG_CLIENT_SOFTWARE_REQUESTSLog incoming API requests to DBfalse
LOG_EXTERNAL_API_REQUESTSLog outgoing external API requeststrue
LOG_WEBHOOK_REQUESTSLog webhook requests to DBfalse
LOG_CHANNEL_IMPORTChannel for import logsdaily

Grafana/Loki dashboard rules

  • Hide Loki metadata columns: labelTypes, traceID, traceID (field).
  • Use correct Loki service labels: import_result for final states, import_snapshot for cron.
  • Verify column names match data semantics.

Conventions

→ See guideline php/logging.md for log levels, structured context, what to log, Sentry patterns.

Validate

  • Verify log level matches severity (no Log::error() for info-level events).
  • Confirm structured context is passed (not string interpolation).
  • Check that no sensitive data (passwords, tokens, PII) appears in log output.
  • Verify Sentry captures include relevant context for debugging.

Output format

  1. Logging configuration or structured log statements
  2. Sentry integration with proper context and breadcrumbs

Gotcha

  • Sentry has 200KB event size limit — large context gets truncated.
  • Structured logging keys must be snake_case.
  • Don't create Loki channels without corresponding Grafana dashboard query.

Do NOT

  • Do NOT use Sentry SDK directly — use MonitoringHelper.
  • Do NOT interpolate variables into log messages — use context array.
  • Do NOT log at error level for expected/handled conditions.

Auto-trigger keywords

  • logging
  • monitoring
  • Sentry
  • Grafana
  • structured logging
  • log levels

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.