GithubHelp home page GithubHelp logo

isabella232 / vistecture-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aoepeople/vistecture-dashboard

0.0 0.0 0.0 9.95 MB

Is a simple dashboard for projects that are deployed into kubernetes. It works together with Vistecture and shows the state of the vistecture architecture in kubernetes.

HTML 1.01% CSS 65.95% JavaScript 26.87% Go 6.00% Makefile 0.07% Dockerfile 0.09%

vistecture-dashboard's Introduction

Vistecture Dashboard

Docker: aoepeople/vistecture-dashboard

Works together with Vistecture and shows the state of the vistecture architecture in kubernetes like this:

Vistecture_Dashboard

Usage

You can use the Dockerimage: aoepeople/vistecture-dashboard:2.1.3

Example Project

docker run --rm -ti -p 8080:8080 aoepeople/vistecture-dashboard:2.1.3

Custom Project

Just copy your vistecture definitions into /vistecture/project.yml

The following Dockerfile could be used to build an image running the dashboard for your defined architecture:

FROM aoepeople/vistecture-dashboard:2.1.3

COPY definition /definition
CMD ["-config", "/definition/project.yml"]

Vistecture Properties that are used:

The following "Properties" are used to control dashboard behaviour (See example folder for an example)

  • deployment: Has to be set to kubernetes (otherwise app is not checked)
  • healthCheckPath: Healthcheck endpoint (relative path) (Optional - if not set just the base url is called) - If a healthCheckPath is configured it need to match the defined format (see below)
  • apiDocPath: Optional the relative path to an API spec (just used to show a link)
  • k8sDeploymentName: Override the name of the deployment in kubernetes that is checked(default = appname)
  • k8sHealthCheckServiceName: Override service name that is used to check health (default = appname)
  • k8sHealthCheckThroughIngress: If the app should be checked from public (ingress is required for the service)
  • k8sType: set to "job" if the application is not represented by an deployment in kubernetes, but it is just a job

Healtcheck Format:

If a Healthcheck path is configured for the application the following format is evaluated:

{
"services": [
    {
        "name": "session",
        "alive": true,
        "details": "success"
    },
    {
        "name": "magento",
        "alive": true,
        "details": "magento is alive"
    },
    {
        "name": "om3oms-rabbitMQ-publisher",
        "alive": false,
        "details": "dial tcp [::1]:5672: connect: connection refused"
    }
]
}

Development:

# run
go run vistecture-dashboard.go

For a demo display please use:

go run vistecture-dashboard.go -config=example/project.yml -Demo

And access it via http://localhost:8080

vistecture-dashboard's People

Contributors

bastianccm avatar danielpoe avatar jadhub avatar jochen42 avatar michaelklapper avatar annabadsi avatar panzerfahrer avatar dependabot[bot] avatar ericlaufer avatar

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.