Skip to content

Make metrics even better #6

Description

@willjasen

The basis is there but the Graph tab needs to be fixed to show proper graphs.

- Added compact uptime-style metrics under `.tephramesh/metrics`.

  - Tracks Syncthing API availability per configured instance.
  - Tracks peer connection state between Syncthing devices.
  - Uses Influx-style line protocol internally.
  - Throttles writes to approximately once per minute and caps retention at 256 KiB.

- Secured metrics using existing Tephramesh credentials.

  - Metric files are encrypted with the existing age identity.
  - Detached signatures use the enrolled P-256 device-signing key.
  - Reads verify the signature, enrollment chain, revocations, and ciphertext before decrypting.
  - No additional Keychain secret was introduced.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions