Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch Linux
  • aurweb
  • Issues
  • #17
Closed
Open
Created May 09, 2021 by Kristian Klausen@klausenbusk🎉Contributor0 of 2 tasks completed0/2 tasks

Add /metrics endpoint

We will be adding a AUR exporter soonish (infrastructure!375 (merged)) which only expose the frontpage statistics and works by just scrapping aur.archlinux.org. Ideally aurweb should expose a /metrics endpoint (perhaps restricted)

I think it make sense to postpone this until the Python port is live.

Prometheus Python client: https://github.com/prometheus/client_python

Python /metrics (todo)

  • https://pypi.org/project/prometheus-fastapi-instrumentator/
  • api_requests_count
    • A single count of HTTP requests destined for /rpc
    • Includes "type" label (extracted query argument) as long as it is included in whitelisted RPC types.

Please coordinate with the DevOps team.

Edited Oct 16, 2021 by Kevin Morris
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking