Skip to main content

# Pikka Bird Server (Python)

[![Build Status](https://travis-ci.org/tiredpixel/pikka-bird-server-py.png?branch=master,stable)](https://travis-ci.org/tiredpixel/pikka-bird-server-py)

Pikka Bird ops monitoring tool Server component.

Pikka Bird Server provides an API to which [Pikka Bird Collector][collector] sends metrics reports, storing in a [PostgreSQL][postgresql] database. Pikka Bird Server is a [Python][python] [Flask][flask] application.

One of the design goals of Pikka Bird is to enable production-suitable setup in a minimum of steps and configuration. To support this, Pikka Bird Server uses [Gunicorn][gunicorn] to provide concurrent request workers. Other setups can be used if preferred, however.

Pikka Bird is currently in a draft phase, which means that payloads and schemas might be changed in a backwards-incompatible fashion. Although it is unlikely, in extreme cases this could require you to reinstall with an empty database. If this upsets you too much, please wave and come back later. :) Currently, it is not recommended that you use Pikka Bird as a replacement for any of your usual monitoring tools.

Pikka Bird Server can currently only collect metrics and store them in the database. There is no serving metrics via the API, no aggregation, no reporting, no alerting – you get the idea. :)

More sleep lost by [tiredpixel](https://www.tiredpixel.com/).

## Installation

Install the following externals:

  • [Python][python]

    The default version supported is defined in .python-version. Any other versions supported as defined in .travis.yml.

  • [PostgreSQL][postgresql]

    This is specific dependency, as extensive use is made of PostgreSQL-specific functionality which may not be available in other databases.

Install using [Pip][pip]:

pip install pikka-bird-server

There are currently no released server packages (stay tuned).

Migrate the database:

bin/pikka-bird-server -c database-migrate

## Usage

To run the API:

bin/pikka-bird-server

Run [Pikka Bird Collector][collector].

Look at your database. :P

Help is at hand:

bin/pikka-bird-server -h

## Development

Copy the example configuration for development, adjusting to taste:

cp .env.example .env

Copy the example configuration for testing, adjusting to taste, adding the environment variable CI=true (the tests are destructive to the database):

cp .env.example .test.env

Install locally using [Pip][pip] editable mode:

pip install -r requirements.txt pip install -e .

Start a server using [Honcho][honcho], which reads Procfile:

honcho start

Run the tests, which use [py.test][py_test]:

honcho run -e .test.env py.test

## Stay Tuned

We have a [Librelist][librelist] mailing list! To subscribe, send an email to <pikka.bird@librelist.com>. To unsubscribe, send an email to <pikka.bird-unsubscribe@librelist.com>. There be [archives](http://librelist.com/browser/pikka.bird/).

You can also become a [watcher](https://github.com/tiredpixel/pikka-bird-server/watchers) on GitHub. And don’t forget you can become a [stargazer](https://github.com/tiredpixel/pikka-bird-server/stargazers) if you are so minded. :D

## Contributions

Contributions are embraced with much love and affection! <3 Please fork the repository and wizard your magic, preferably with plenty of fairy-dust sprinkled over the tests. Then send me a pull request. :) If you’re thinking about working on something involved, it would be great if you could wave via the issue tracker or mailing list; I’d hate for good effort to be wasted!

Do whatever makes you happy. We’ll probably still like you. :)

## Blessing

May you find peace, and help others to do likewise.

## Licence

© [tiredpixel](https://www.tiredpixel.com/) 2015. It is free software, released under the MIT License, and may be redistributed under the terms specified in LICENSE.txt.

[collector]: https://github.com/tiredpixel/pikka-bird-collector-py [flask]: http://flask.pocoo.org/ [gunicorn]: http://gunicorn.org/ [honcho]: https://github.com/nickstenning/honcho [librelist]: http://librelist.com/ [pip]: https://pypi.python.org/pypi/pip [postgresql]: http://www.postgresql.org/ [py_test]: http://pytest.org/latest/ [python]: https://www.python.org/

Metadata

Release files for pikka-bird-server 0.1.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 pikka-bird-server 0.1.0
File Size Uploaded Provenance
pikka-bird-server-0.1.0.tar.gz 12.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pikka-bird-server 0.1.0
File Interpreter ABI Platform
pikka_bird_server-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 29.6 kB

Release files / pikka-bird-server-0.1.0.tar.gz

Download URL pikka-bird-server-0.1.0.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9fdb13ff6d22042331aeefbf8ed737f1398bc43b7c6098ed2679ddf514259af7
BLAKE2b-256 checksum
How to use checksums
c45c832edd838fc7121c2fc547a0363cf719c0e5f49310ee6284fd723b2d4b02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pikka_bird_server-0.1.0-py2.py3-none-any.whl

Download URL pikka_bird_server-0.1.0-py2.py3-none-any.whl
Size 16.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5a762f5589b72c5cdcfaf9790feab0aaf88be48f467af3af6e707c701608cb07
BLAKE2b-256 checksum
How to use checksums
cf6d396db45731224ea0cfe6cb4664b5e6e9cd3065b567c8c5d2c339a5665d26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pikka-bird-server 0.1.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

0.1.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