Skip to content

fix(monitoring): correct PromQL syntax and align metric names#246

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/alerting-rules-improvements
Jun 26, 2026
Merged

fix(monitoring): correct PromQL syntax and align metric names#246
ferhimedamine merged 1 commit into
mainfrom
fix/alerting-rules-improvements

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Summary

  • Fix group()group_left() in resource alert binary operations (invalid PromQL syntax)
  • Remove {job="dakera"} filter from container_spec_memory_limit_bytes — cAdvisor metrics use their own job label, not dakera
  • Swap dakera_cluster_nodes_totaldakera_replica_count — the metric the Dakera server actually emits
  • Add "future-ready" comments on alerts referencing not-yet-emitted metrics (dakera_decay_cycle_duration_seconds, dakera_l2_cache_*)
  • Document cAdvisor dependency in header tuning notes

Follow-up to #245 by @extremecoder-rgb.

Test plan

  • docker compose config --quiet validates YAML
  • promtool check rules monitoring/alerting-rules.yml passes (if promtool available)
  • Prometheus loads rules without errors in container logs

🤖 Generated with Claude Code

…rver

- Fix group() → group_left() in resource alert binary operations
- Remove {job="dakera"} filter from container_spec_memory_limit_bytes
  (cAdvisor metrics have their own job label)
- Swap dakera_cluster_nodes_total → dakera_replica_count (the metric
  the server actually emits)
- Add future-ready comments on alerts referencing not-yet-emitted metrics
- Document cAdvisor dependency in header tuning notes

Follow-up to PR#245 by @extremecoder-rgb.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ferhimedamine ferhimedamine added the agent/cto Reviewed/merged by CTO agent label Jun 26, 2026
@ferhimedamine ferhimedamine merged commit 6857019 into main Jun 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/cto Reviewed/merged by CTO agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant