Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geoblacklight/geomonitor
DEPRECATED: See https://github.com/geoblacklight/geo_monitor
https://github.com/geoblacklight/geomonitor
Last synced: about 1 month ago
JSON representation
DEPRECATED: See https://github.com/geoblacklight/geo_monitor
- Host: GitHub
- URL: https://github.com/geoblacklight/geomonitor
- Owner: geoblacklight
- Archived: true
- Created: 2014-04-12T18:45:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T19:26:28.000Z (almost 7 years ago)
- Last Synced: 2024-08-02T12:49:11.289Z (4 months ago)
- Language: Ruby
- Homepage: https://github.com/geoblacklight/geo_monitor
- Size: 163 KB
- Stars: 13
- Watchers: 13
- Forks: 7
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - geoblacklight/geomonitor - DEPRECATED: See https://github.com/geoblacklight/geo_monitor (others)
README
# GeoMonitor
DEPRECATED. See https://github.com/geoblacklight/geo_monitor for the Rails engine version.
GeoMonitor is a application that monitors the health and availability of GeoServer hosts and layers. Built at Stanford University out of the desire to build a better discovery application for geospatial data, GeoBlacklight.
## Features
- RESTful API
- Host status pings
- Individual layer status using WMS requests
- Host and layer availability history## Installation
**Requires PostgreSQL 9.*
### Create file `data/transformed.json`
This should be an array of [geoblacklight-schema](https://github.com/geoblacklight/geoblacklight-schema) documents.
#### Quick way (sample of documents)
```
$ curl -L https://raw.githubusercontent.com/geoblacklight/geoblacklight-schema/master/examples/selected.json -o data/transformed.json
```### Setup database
```
$ rake db:create
$ rake db:seed
```### Ping hosts
```
$ rake ping:hosts
```### Run tests
```
$ rake ci
```### Run checks on layers
```
# All layers
$ rake layers:check_all# Check empties (layers that have not been checked yet)
$ rake layers:check_empties# Check Stanford layers (private layers restricted to Stanford network)
$ rake layers:check_stanford```
These rake tasks can be setup on cron jobs using the whenever gem. See `/config/schedule.rb`
```
every '15 * * * *' do
rake 'layers:check_stanford'
end
```### Cleanup database by deleting old statuses
This task removes all but the last 200 statuses for each layer and saves them to a csv in `data````sh
$ rake cleanup:status
```## REST API
Documented support RESTful paths support json requests.
#### /hosts
HTTP Verb | Path | Description
---- | ---- | ----
GET | /hosts/:id | Get a list of Layers on a given Host [:id]Supported parameters:
- `format` 'html' and 'json'
- `status` 'OK', '??', and 'FAIL'
- `page` 1, 2, 3, etc.Example request:
http://127.0.0.1:3000/hosts/1?format=json&status=OK&page=3## Contributing
1. Fork it ( http://github.com//geomonitor/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request