Giter VIP home page Giter VIP logo

triglav's Introduction

Triglav BuildStatus Coverage Status

Server Admin Tool.

Architecture

Triglav

Setup

Documentations

API Clients

How to contribute

  • issueもコミットメッセージも日本語でおk
  • 適当にpull requestください
  • フィーチャーリクエストは、issue書いてからの方が望ましいです
    • 仕様をミニマムに保ちたいので
    • バグフィックスとか、あきらかにこれいるだろとかいうのはそのままpull-reqください

License

Copyright

© Triglav Developers

License

MIT LICENSE

triglav's People

Contributors

banyan avatar glidenote avatar hfm avatar hsbt avatar id774 avatar kentaro avatar kitaitimakoto avatar kyanny avatar mizzy avatar tnmt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

triglav's Issues

API design

API URLs

Now there are several endpoints as below:

GET /api/services.json
GET /api/services/${id}.json
GET /api/roles.json
GET /api/roles/${id}.json
GET /api/hosts.json
GET /api/hosts/${id}.json
GET /api/services/${service}/(roles|hosts).json
GET /api/services/${service}/roles/${role}/hosts.json

I'm thinking of only URLs for retrieval so far. Create/Update/Delete APIs are also needed?

Authentication

See #29.

I decided to adopt API token-based strategy.

Localize datetime

Now datetime is shown as UTC. How can I show it along with visitor's time zone?

API client library

When #26 is closed, then API client library will be needed. It should have just sufficient functions for Triglav's API. Once API's spec is fixed, it'll be uploaded onto rubygems.org.

Authenticate API client by API token

  • Each users have their own API token.
  • Access under /api must be authenticated by the token
    • It should authenticate also by cookie for convenience
  • API token should be able to be updated by user.

グラフの期間を切り替えたい

サービスに属するホスト一覧のページに Munin のグラフが表示されますが、 daily だけではなく weekly/monthly のグラフを一覧で眺めたいことがあるので、切り替えボタンが欲しいです。

Remove methods from models using Cells

I think Cells is a symmetrical thing against DCI's Context. While we inject Roles into models along with some Contexts when we create/update/delete resources, we avoid methodful models and extract the methods to appropriate place when we retrieve and render resources. That is Cells.

`http://お名前.com/` for services.munin_url causes error

ActionView::Template::Error (bad URI(is not URI?): http://お名前.com/):
    28: <% if @munin.find_service_that_hash_munin_url_by(@host) -%>
    29:   <div>
    30:     <h2><%= t('hosts.show.graphs') %></h2>
    31:     <p><%= link_to @munin.url_for(host: @host).to_s, @munin.url_for(host: @host).to_s %></p>
    32:     <% @munin.categories.each do |category| -%>    33:       <h3><%= category[:name] %></h3>
    34:       <div class="sub_category">
  lib/munin.rb:16:in `root'
  lib/munin.rb:30:in `url_for'  app/views/hosts/show.html.erb:31:in `_app_views_hosts_show_html_erb___1706361400767208808_33939300'  app/controllers/hosts_controller.rb:16:in `show'

Free member mode

When Settings.github.organization is not set, we regard the setting as "free member mode", that is, we don't need login users to be some specific organization member. Only if the users have github account, anybody can log in to the site.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.