GithubHelp home page GithubHelp logo

alexcreasy / trustyai-console Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.21 MB

Web console for TrustyAI Explainability Service.

License: Apache License 2.0

Dockerfile 1.54% JavaScript 18.08% CSS 0.77% TypeScript 78.58% HTML 1.03%

trustyai-console's Introduction

trustyai-console

Web console for TrustyAI Explainability Service.

Running the container

Set the address of the TrustyAI and Grafana services by setting the environment variables TRUSTYAI_URL and GRAFANA_URL as below:

 docker run --rm -p 8081:8080 -e TRUSTYAI_URL=http://localhost:8080 -e GRAFANA_URL=http://grafana:3000 trustyai-console

The console will then be available at: http://localhost:8989

Docker compose example

services:
  trustyai:
    image: quay.io/rgeada/trustyai-service:grafana-demo
    container_name: trustyai-service
    ports:
      - "8080:8080"
    environment:
      SERVICE_STORAGE_FORMAT: "MEMORY"
      SERVICE_DATA_FORMAT: "CSV"
      SERVICE_METRICS_SCHEDULE: "5s"
      SERVICE_BATCH_SIZE: 5000
      STORAGE_DATA_FILENAME: "data.csv"
      STORAGE_DATA_FOLDER: "/inputs"
      LOG_LEVEL: "DEBUG"
    volumes:
      - ~/volumes/pvc/inputs:/inputs
  trustyai-console:
    image: quay.io/acreasy/trustyai-console:grafana
    container_name: trustyai-console
    ports:
      - 8081:8080
    environment:
      TRUSTYAI_URL: http://trustyai:8080
      GRAFANA_URL: http://grafana:3000
  prometheus:
    image: prom/prometheus
    container_name: prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
    ports:
      - 9090:9090
    restart: unless-stopped
    volumes:
      - ./prometheus:/etc/prometheus
      - prom_data:/prometheus
  grafana:
    image: grafana/grafana
    container_name: grafana
    ports:
      - 3000:3000
    restart: unless-stopped
    environment:
      GF_SECURITY_ADMIN_USER: admin
      GF_SECURITY_ADMIN_PASSWORD: admin
      GF_AUTH_ANONYMOUS_ENABLED: true
      GF_SECURITY_ALLOW_EMBEDDING: true
      GF_SERVER_ROOT_URL: http://trustyai-console:8080/grafana/
      GF_SERVER_SERVE_FROM_SUB_PATH: true
    volumes:
      - ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
      - ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
      - ./grafana/dashboards:/var/lib/grafana/dashboards
  generator-1:
    container_name: generator-1
    image: trustyai/trustyai-service-partial
    build:
      context: ./logger
      dockerfile: ./partial.Dockerfile
    environment:
      MODEL_NAME: "example-model-1"
      SERVICE_ENDPOINT: "http://trustyai:8080/consumer/kserve/v2"
      PYTHONUNBUFFERED: "1"
  generator-2:
    container_name: generator-2
    image: trustyai/trustyai-service-partial
    build:
      context: ./logger
      dockerfile: ./partial.Dockerfile
    environment:
      MODEL_NAME: "example-model-2"
      SERVICE_ENDPOINT: "http://trustyai:8080/consumer/kserve/v2"
      PYTHONUNBUFFERED: "1"

volumes:
  prom_data:

Run docker compose up -d and open the console at: http://localhost:8989

Running the demo

From the demo directory run:

docker compose build
docker compose up -d
./add-requests.sh   

Open a browser and point it at http://localhost:8081

trustyai-console's People

Contributors

alexcreasy avatar

Watchers

 avatar  avatar

trustyai-console's Issues

Add tests

  • Tests were removed as part of the dependencies upgrade due to Enzyme being incompatible with React 18. Tests need to be re-added using RTL and Storybook.

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.