Update celery exporter#1
Conversation
Relates to #265 (comment)
Also refactor mixins to update build files. Add ci
Chore: Update to python 3.14 and bump dependecies
⛔ Snyk checks have failed. 1 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0e0f4a0. Configure here.
| %(queue)s, | ||
| %(taskV)s, | ||
| %(celeryIgnoredTasks)s | ||
| ||| % this, |
There was a problem hiding this comment.
Mandatory cluster label filter
Medium Severity
Generated Grafana queries now always include cluster="$cluster" in every panel filter, and the hidden cluster variable is populated from label_values(..., cluster). The exporter does not emit a cluster label, and showMultiCluster defaults to false, so typical Prometheus setups that worked with the previous dashboards will match no series and show empty panels.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 0e0f4a0. Configure here.
| cluster: | ||
| query.new( | ||
| config.clusterLabel, | ||
| 'label_values(celery_worker_up{}, cluster)', |
There was a problem hiding this comment.
Wrong label in cluster variable
Low Severity
The cluster template variable query hardcodes the label name cluster in label_values, while panel filters use config.clusterLabel (default cluster). Overriding clusterLabel in config leaves the variable reading one label and queries filtering on another, so variables and panels disagree.
Reviewed by Cursor Bugbot for commit 0e0f4a0. Configure here.


mainly version bumps
Note
Medium Risk
Python 3.14 and new container
latesttagging can break builds or pull semantics; mixin PromQL and dashboard layout changes affect how operators monitor Celery in production.Overview
Bumps the project runtime from Python 3.13 to 3.14 across CI,
.python-version, the mainDockerfile, andDockerfile.pyinstaller, and tags GHCR images withlateston release builds.Docs: README adds PyPI install (
prometheus-exporter-celery) and a quick/metricsscrape check.Celery-mixin: Adds a dedicated GitHub Actions workflow (jsonnet generate/fmt, promtool, dashboard-linter, vale, pint) and expands the Makefile with vendored Go tooling and separate
prometheus_alerts.yaml/prometheus_rules.yamlgeneration. Dashboards are refactored aroundmixin-utils, sharedutil.libsonnetfilters/variables (including optional cluster),dashboardUrls/dashboardIdsin config, and richer panels (summary pie charts, success-rate series, task row repeat). Regenerateddashboards_outJSON reflects new PromQL (cluster, multi queue selection,1wstats, etc.). Alert annotation links use the new URL map.Reviewed by Cursor Bugbot for commit 0e0f4a0. Bugbot is set up for automated code reviews on this repo. Configure here.