• This repository has been archived on 23/Jan/2019
  • Stars
    star
    478
  • Rank 91,950 (Top 2 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple monitoring system.

salmon

This project is unmaintained

My need for simple monitoring quickly became a need for more complex monitoring. I'm no longer using Salmon, as such, I'm no longer maintaining it. If you would like to continue developing Salmon, feel free to fork the repo and we can point this to your fork.


https://secure.travis-ci.org/lincolnloop/salmon.png?branch=master https://coveralls.io/repos/lincolnloop/salmon/badge.png?branch=master

A simple monitoring system built on top of Django.

The intent is to serve both as an alerting system like monit and a monitoring system like munin (using Graphite's whisper database).

The original release of Salmon was coupled to Salt and designed to monitor servers (Sal t Mon itor). As of v0.2.0, the system has been decoupled from Salt and ingests data via a simple HTTP interface.

http://cl.ly/image/3s340i0W0N06/content.png

https://cloudup.com/chXR0xnFtkf+

Installation

To bootstrap the project:

virtualenv salmon
source salmon/bin/activate
pip install salmon
salmon init
salmon upgrade
salmon collectstatic

Fire up the web server with:

salmon start

Sending Metrics to Salmon

Metrics are sent in as JSON over HTTP. The format for a single metric:

{
    "source": "test.example.com",
    "name": "load",
    "value": 0.1
}

Multiple metrics can be sent as an array:

[
    {"source": "test.example.com", "name": "load", "value": 0.1},
    {"source": "multi.example.com", "name": "cpu", "value": 55.5}
]

The API endpoint is /api/v1/metric/. If your Salmon server lives at http://salmon.example.com, you can POST to http://salmon.example.com/api/v1/metric/. Pass in your API key as found in ~/.salmon/conf.py for authentication. Using Curl, it would look something like this:

curl -i --user "<API_KEY>:" \
     -H "Content-Type: application/json" \
     -X POST \
     -d '{"source": "test.example.com", "name": "load", "value": 0.1}' \
     http://salmon.example.com/api/v1/metric/

Using Salt

  1. Setup the salt-stats states on your master or just grab the salmon returner
  2. Add the path to your Salmon install and API key (found in ~/.salmon/conf.py) to your Salt Pillar. (salmon pillar example)
  3. Add a schedule pillar. (schedule pillar example)
  4. Run salt '*' saltutil.sync_all

Note: To use Salt's ps module, psutil must be installed on the minions. Ubuntu provides a python-psutil package or it can be installed via pip install psutil.

More Repositories

1

python-qrcode

Python QR Code image generator
Python
4,287
star
2

amygdala

RESTful HTTP client for JavaScript powered web applications
JavaScript
392
star
3

django-layout

Django project template layout
Python
286
star
4

django-startproject

Boilerplate code for new Django projects.
Python
238
star
5

django-dynamic-raw-id

(formerly known as django-salmonella) A raw_id_fields widget replacement that handles display of an object's string value on change and can be overridden via a template.
Python
161
star
6

goodconf

Transparently load variables from environment or JSON/YAML/TOML file.
Python
128
star
7

django-debug-logging

A plugin for the Django-Debug-Toolbar to provide statistic logging and a UI for reviewing the logs.
Python
103
star
8

django-webserver

Production webservers as a Django management command
Python
86
star
9

django-production

production settings for Django
Python
77
star
10

generator-frigate

Yeoman generator for webapp development with React, webpack hot reloading, es6 (babel), sass, karma and BrowserSync as a development server/proxy.
JavaScript
44
star
11

django-geotagging

Generic geotagging app built on GeoDjango
Python
43
star
12

lincoln-loop-deploy

An easy-to-use Fabric script for deploying Python projects
Python
41
star
13

python-package-manager-shootout

Benchmarking various Python package managers
HTML
41
star
14

django-cpserver

Management commands for serving Django via CherryPy's built-in WSGI server
Python
41
star
15

salt-stats

A collection of modules for collecting stats
Python
37
star
16

django-jsonit

Helpers for working with JSON responses in your Django project.
Python
35
star
17

django-alive

Healthchecks for Django
Python
32
star
18

django-protected-files

A Django application that lets you serve protected static files via your frontend server after authorizing the user against django.contrib.auth.
Python
32
star
19

round-up

Links and notes from the Django Round-Up podcast
30
star
20

emailed-me

A mini-site for checking Google's Gmail feed with Oauth.
Python
29
star
21

django-beancounter

Django-beancounter is a simple app I built to track my income and expenses.
JavaScript
26
star
22

django-ft-cache

A fault-tolerant pylibmc cache backend for Django
Python
24
star
23

django-render

Render unknown Django model instances based on their content type.
Python
21
star
24

saltdash

A read-only dashboard for Salt jobs
Python
21
star
25

django-kwalitee

A suite of scripts to measure the "kwalitee" of a Django project.
Python
21
star
26

django-selenium-intro

Introduction to Django Selenium blog post example
Python
20
star
27

crossing

JavaScript URL utility library
JavaScript
17
star
28

jquery.shuffleLetters

A fork of martinaglv's shuffleLetters discussed here: http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/
JavaScript
16
star
29

django-mailfriend

Generic "mail this to a friend" app for Django
Python
13
star
30

django-mineral

A collection of templates/widgets for rapid prototyping
JavaScript
12
star
31

django-launchpad

A simple application to track mailing list signups and unsubscribes. Useful for pre-launch signup pages.
Python
11
star
32

pyuwsgi-wheels

Wheel builder for pyuwsgi
Python
10
star
33

fab-pave

A Fabric script for paving a single web/database server
Python
8
star
34

django-redmine

A Django application to connect to an existing Redmine database
Python
8
star
35

django-locations

International location app following ISO 3166 standards
Python
7
star
36

django-pyuwsgi

Use django-webserver instead
Python
7
star
37

learn-backbone-integration

Syncing Backbone.js with Django
JavaScript
7
star
38

memcache-top

Automatically exported from code.google.com/p/memcache-top
Perl
5
star
39

python-realtimemagic

WorkInProgress. A set of tools to make writting a realtime sockjs server easy(er)
Java
5
star
40

django-paginav

A Django template pagination navigation tag
Python
4
star
41

paaws

CLI for Paaws
Python
4
star
42

pkg-uwsgi-python

uWSGI for Python Debian/Ubuntu package builder
4
star
43

django-libsql

libsql database backend for Django
Python
3
star
44

django-safe-admin-emails

Provides support for making sure sensitive information does not appear in admin emails.
3
star
45

Colloquy-MenuBar-Notifier-Plugin

An unobtrusive notifier for Colloquy.
Python
3
star
46

django-smatic

Python
3
star
47

jquery-slidify

A graphical range selector for jQuery
JavaScript
3
star
48

external-api-integration

Post subversion commits as Basecamp comments
Python
3
star
49

ecs-task

Helper for registering new task definitions on AWS ECS and updating associated services.
Python
3
star
50

flexmap

A HTML/CSS based sitemap
CSS
2
star
51

threads

Threads, the front-end
JavaScript
2
star
52

docker-graphite-api-grafana

JavaScript
2
star
53

element-queries-example

A news website layout with an article component that uses element queries.
HTML
2
star
54

django-linkback

An admin widget to show a link back to the original objects in foreign keys.
Python
2
star
55

docker-sentry

Python
1
star
56

terraform-aws-ecs-service-update

Terraform module to update Services and run Tasks on Amazon ECS
HCL
1
star
57

docker-google-auth-proxy

1
star
58

vectorprime

Lincoln Loop's hubot
CoffeeScript
1
star
59

django-static-installer

A static file dependency downloader/manager
Python
1
star
60

flexbox-fridays

The website for Lincoln Loop's Flexbox Fridays research project.
CSS
1
star
61

docker-nginx-push-stream

Build Nginx push stream module packages for Ubuntu 14.04
1
star
62

django-geotagging-new

An application for transparently geotagging your models.
Python
1
star
63

itinerary

Lightweight routing forked from Backbone, decoupled, and (soon to be) enhanced.
JavaScript
1
star
64

web-design-regularly

Landing page for LL's web design weekly
CSS
1
star
65

windmills

Stop Tilting at Windmills - Spotting Bottlenecks
Python
1
star
66

blinken-bloop

For Django Dash 2013.
CSS
1
star
67

crossing-react-router-demo

A demo showing using Crossing to manage URLs in a react-router based application
JavaScript
1
star