Giter Site home page Giter Site logo

grafana-dashboards's Introduction

This is my custom Grafana dashboards that are published under https://grafana.com/orgs/monsterrr

Dashboards

If you have an issue, would like to enhance dashboards feel free to open a PR :)

Contributing

We welcome and encourage contributions to this project! Please read the Contributing guide. Also make sure to check the Code of Conduct and adhere to its guidelines

Security

See SECURITY.md file for details.

Licence

The code is under CeCILL license.

You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html

Credits

Copyright © Ludovic Ortega, 2023

Contributor(s):

-Ortega Ludovic - [email protected]

grafana-dashboards's People

Contributors

m0nsterrr avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vrivellino

grafana-dashboards's Issues

Add job filter for "Blackbox exporter - ICMP" dashboard

What would you like to be added:

Add job filter for "Blackbox exporter - ICMP" dashboard

Why is this needed:

I've multiple jobs to monitor.

  - job_name: "icmp_job1"
    metrics_path: /probe
    params:
      module: [icmp]
    file_sd_configs:
    - files:
      - 'services/icmp_job1.json'
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      # - source_labels: [__param_target]
        # target_label: instance
      - target_label: __address__
        replacement: hostname1:9115

  - job_name: "icmp_job2"
    metrics_path: /probe
    params:
      module: [icmp]
    file_sd_configs:
    - files:
      - 'services/icmp_job2.json'
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      # - source_labels: [__param_target]
        # target_label: instance
      - target_label: __address__
        replacement: hostname2:9115

How to implement this work:

Add new variable "job"

Variable Definition
job label_values(probe_icmp_duration_seconds,job)
instance label_values(probe_icmp_duration_seconds{job=~"$job"},instance)

PromQL

ICMP RTT: sum(probe_icmp_duration_seconds{phase="rtt",job=~"$job",instance=~"$instance"}) by (instance)
ICMP packet loss: 1-probe_success{job=~"$job",instance=~"$instance"}
ICMP $instance:
A: 1-avg_over_time(probe_success{job=~"$job",instance=~"$instance"}[$__interval])
B: probe_icmp_duration_seconds{phase="rtt",job=~"$job",instance=~"$instance"} > 0

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.