Skip to content

Commit

Permalink
Merge pull request #6 from eduNEXT/cag/prometheus
Browse files Browse the repository at this point in the history
feat: allow to setup prometheus integration
  • Loading branch information
Cristhian Garcia authored Aug 22, 2024
2 parents 944b821 + 0fb495d commit 5cfef76
Show file tree
Hide file tree
Showing 4 changed files with 999 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,27 @@ times and performance:
CELERY_FLOWER: true
```

#### Enable Flower Prometheus Integration

If you are running grafana you can use the attached [config map](resources/configmap.yaml) to import a custom Grafana dashboard to monitor
celery metrics such as:

- Total Queue Length
- Queue Length by task name
- Celery Worker Status
- Number of Tasks Currently Executing at Worker
- Average Task Runtime at Worker
- Task Prefetch Time at Worker
- Number of Tasks Prefetched at Worker
- Tasks Success Ratio
- Tasks Failure Ratio

Make sure to enable the ServiceMonitor resource to inform Prometheus to scrape metrics from the flower service

```yaml
CELERY_FLOWER_SERVICE_MONITOR: true
```

License
*******

Expand Down
Loading

0 comments on commit 5cfef76

Please sign in to comment.