Git Product home page Git Product logo

redhat-appstudio-qe / perf-monitoring Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 5.0 6.23 MB

This is a monitoring setup for when we run Load/Performance Tests on AppStudio Runs Prometheus, Pushgateway Grafana and Ingester which communicates with each other to gather and display metrics which are captured during StoneSoup Performance/Load Tests

Dockerfile 0.53% Go 99.47%
grafana-dashboard performance-monitoring prometheus pushgateway

perf-monitoring's Introduction

Performance Monitoring

This is a Push/Action monitoring setup for when we run Load/Performance Tests on AppStudio

Runs Prometheus, Pushgateway Grafana, and Contains a gopkg which communicates with each other to gather and display metrics that are captured during StoneSoup Performance/Load Tests

This application consists of 3 components

  • Push gateway
  • Prometheus
  • Grafana

Deployment

For this application, the above 3 components have to be deployed

Pushgateway

The pre-configured yaml file

To deploy this component in RHTAP, Create a project and add Pushgateway as a component. It’ll use the configuration mentioned earlier to deploy. You can edit the configuration file, if and when necessary.

Prometheus

Before deploying Prometheus, we should make a config map. Here is a sample config map reference. Edit the file accordingly.

Then, use this deployment yaml to deploy it in RHTAP

Grafana

To deploy Grafana in RHTAP, here are the necessary steps

  • Create secrets
  • Configure those variables in this file

The below fields are mandatory

GF_DATABASE_URL - URL to any Database (like RDS)

GF_DATABASE_TYPE - Provide the type DB (like POSTGRES)

GF_SECURITY_ADMIN_PASSWORD - Password of that DB

GF_SECURITY_ADMIN_USER - Username of that DB

GF_INSTALL_PLUGINS is an optional one

Next steps
  • Get the offline token
  • Get access token
  • oc login
  • cd to secret.yaml
  • Run oc apply

These commands will help in configuring the secret

After configuring the secrets

Import grafana component to RHTAP

Upload metrics data to this application

Once this application is deployed, the next step is to upload the data to push the gateway

  • Initialize an object for NewMetricController with the Pushgateway URL

    Reference code
      controller := metrics.NewMetricController("URL", "load")
      controller.InitPusher();
    
  • Use the PushMetrics function to upload the data.

    Reference code

    controller.PushMetrics(constants.CollectorUsers,constants.MetricTypeCounter,constants.MetricSuccessfulUserCreationsCounter)

  1. Here is a tester code
  2. Use these code blocks as a reference for uploading data to push the gateway

perf-monitoring's People

Contributors

jhutar avatar sawood14012 avatar

Watchers

 avatar  avatar  avatar  avatar  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.