Skip to content

add NetBird and CKAN metadata to metrics#198

Open
saleemalharir1 wants to merge 2 commits into
mainfrom
feature/netbird-ckan-metrics
Open

add NetBird and CKAN metadata to metrics#198
saleemalharir1 wants to merge 2 commits into
mainfrom
feature/netbird-ckan-metrics

Conversation

@saleemalharir1

Copy link
Copy Markdown
Member

Summary

  • add optional NetBird metadata to the metrics payload from NETBIRD_ENABLED, NETBIRD_IP, and NETBIRD_GROUP
  • report local CKAN URL and whether a CKAN API key is configured
  • report a short CKAN API key fingerprint by default, and the raw key only when REPORT_CKAN_API_KEY_IN_METRICS=True is explicitly set

Notes

This PR is stacked after #197. Review and merge #197 first; after that lands, this PR should collapse to only the metrics changes.

Testing

  • python3 -m py_compile api/tasks/metrics_task.py tests/test_metrics_task.py
  • git diff --check
  • docker compose up --build -d api
  • docker compose exec -T api pytest -q tests/test_metrics_task.py

@saleemalharir1
saleemalharir1 requested a review from rbardaji July 25, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant