Skip to main content

monitoring-app-reporter

Uploads the Inferyx user list of this server (e.g. DEV) to S3 at the times you choose. A monitoring-app console on another server that cannot reach this one (e.g. PROD in another AWS account) reads the file and mails it with its user export.

Small on purpose: requests, boto3, cryptography. No console, no web server, no open port, nothing running between uploads — only a systemd timer.

Install (on the server whose users are shared)

H=/opt/monitoring-app-reporter
sudo useradd --system --home-dir "$H" --shell /usr/sbin/nologin inferyx 2>/dev/null || true
sudo mkdir -p "$H" && sudo chown inferyx:inferyx "$H"
sudo -u inferyx python3 -m venv "$H/.venv"
sudo -u inferyx "$H/.venv/bin/pip" install monitoring-app-reporter
CMD="$H/.venv/bin/monitoring-app-reporter"

sudo -u inferyx $CMD configure --api-url https://<this-host>/framework \
    --bucket <bucket> --s3-key monitoring-app/platform-users/dev.json --label DEV --region ap-south-1
sudo -u inferyx $CMD set-token          # paste the Inferyx admin token; stored encrypted
sudo -u inferyx $CMD run --dry-run      # fetch and count only
sudo -u inferyx $CMD run                # upload once
sudo $CMD install-timer --times 08:30,20:30   # daily at these times (IST)

Schedule

Want Command
Daily at 08:30 and 20:30 IST sudo $CMD install-timer --times 08:30,20:30
Weekdays only sudo $CMD install-timer --on-calendar 'Mon..Fri *-*-* 08:30 Asia/Kolkata'
Change the times run install-timer again with the new times
Next run / last result $CMD status
Run now sudo systemctl start monitoring-app-reporter.service
Remove sudo $CMD uninstall-timer

Upload a few minutes before the console's export schedule. The console does not mail an upload older than MONITORING_APP_USERS_S3_MAX_AGE_HOURS (26 h); raise it if you upload less than daily.

What is uploaded

One JSON object (SSE-S3 encrypted): first / last name, user name, email, created / updated by and on, groups, roles, last login, active flag — all users, active and inactive. The token is never uploaded. A list of 0–1 users (Inferyx sometimes answers with only the token's own user) is never uploaded, so a bad answer cannot replace a good file.

AWS

  • This server's EC2 role: s3:PutObject on arn:aws:s3:::<bucket>/<key>.
  • The bucket (in the console's account) allows that role to put that object; Object Ownership Bucket owner enforced, Block Public Access on.
  • The console's EC2 role: s3:GetObject on the same object.

Files: /opt/monitoring-app-reporter/config.env (settings), secrets/ (key and encrypted token, owner-only).

Metadata

Release files for monitoring-app-reporter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monitoring-app-reporter 1.0.0
File Size Uploaded Provenance Actions
monitoring_app_reporter-1.0.0.tar.gz 13.9 kB Without provenance Details for monitoring_app_reporter-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monitoring-app-reporter 1.0.0
File Interpreter ABI Platform Actions
monitoring_app_reporter-1.0.0-py3-none-any.whl Python 3 none any Details for monitoring_app_reporter-1.0.0-py3-none-any.whl

Total release size: 28.4 kB

Release files / monitoring_app_reporter-1.0.0.tar.gz

Download URL monitoring_app_reporter-1.0.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
11e58b30993176cc4e8719b5b0cc4f52ca9e3d1bd041d0c8b2e4b25246fa5df3
BLAKE2b-256 checksum
How to use checksums
d3e54842ddc4f5b8d2e4412ce05c98fe07d354e07dd96e2c50ddbbfe5fa7ba5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / monitoring_app_reporter-1.0.0-py3-none-any.whl

Download URL monitoring_app_reporter-1.0.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09ee74e6068343c471b50eeb09a555912630c7787a9f8e6c3cd5752e71b9dcc0
BLAKE2b-256 checksum
How to use checksums
c657a6981e7ab41486cb48316ffd06c1cc87f5d2bb3317e8f6e8d450cdb06ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for monitoring-app-reporter 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page