Giter Site home page Giter Site logo

nomad-monitoring's Introduction

nomad-monitoring

Monitoring Nomad job states using Grafana state timeline visualization

Pre-requisites

  • Grafana - for dashboard and visualization
  • Prometheus - to scrape metrics from nomad servers

Promethues scrape config

  • Setup promethues to scrape metrics from target nomad servers.
  • Define a metric_relabel_configs section to replace individual nomad_nomad_job_summary_* state metric as a state label in a generic nomad_nomad_job_summary metric.
metric_relabel_configs:
  - source_labels: [__name__]
    regex: nomad_nomad_job_summary_(unknown|queued|starting|running|failed|complete|lost)
    replacement: "$1"
    target_label: state
  - source_labels: [__name__]
    regex: nomad_nomad_job_summary_(unknown|queued|starting|running|failed|complete|lost)
    replacement: nomad_nomad_job_summary
    target_label: __name__

Refer prometheus-scrape-config.yaml example file.

Grafana Visualization

  • Use the modified nomad_nomad_job_summary metric as a table format
  • Setup Grouping to matrix transformation to use exported_job as column with Time as row and state as cell value
  • Transform Time\exported_job as Time format using Convert field type transformation
  • Configure Value mappings to define a Display Text and a color code for different state value

Refer grafana_dashboard.json example JSON file to setup grafana dashboard and visualization.

The final grafana visualization will look similar to below image:

state_timeline

nomad-monitoring's People

Contributors

owaisaamir avatar

Stargazers

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