Skip to content

Blank graph with mtr and fping #136

@penguin02007

Description

@penguin02007

I am trying to setup a dashboard with both mtr and fping probes but I am seeing blank graphs. Looks like graphsrv is not rendering it correctly. (Having this example would be great.)

Any thoughts?

2021-09-24 09:56:49,295 - vaping.plugins.fping_mtr - DEBUG: popen traceroute -n -w1 -q1 5.11.175.212
vaping.plugins.fping_mtr popen traceroute -n -w1 -q1 35.211.175.212 __init__.py:128
 * Serving Flask app 'vaping' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
werkzeug  * Running on all addresses.
   WARNING: This is a development server. Do not use it in a production deployment. _internal.py:225
werkzeug  * Running on http://10.85.147.204:8080/ (Press CTRL+C to quit) _internal.py:225
root b' 1  10.142.128.86  31.449 ms\n' fping_mtr.py:43
root b' 2  10.142.128.1  24.804 ms\n' fping_mtr.py:43
root b' 3  10.69.128.128  30.841 ms\n' fping_mtr.py:43
root b' 4  10.69.129.118  31.518 ms\n' fping_mtr.py:43

probes:
  - name: latency
    type: std_fping
    output:
      - vodka
    groups:
      - name: public_dns
        hosts:
          - host: 8.8.8.8
            name: Google
            color: red
          - host: 4.2.2.1
            name: Level(3)
            color: blue
          - host: 208.67.222.222
            name: OpenDNS
            color: orange
      - name: gcp
        hosts:
          - host: 5.11.175.212
            name: github
            color: yellow

  - name: mtr
    type: fping_mtr
    default_graph: mtr
    group: mtr.gcp
    host: 35.211.175.212
    name: github
    output:
      - vodka

plugins:
  - name: std_fping
    type: fping
    count: 10
    interval: 3s
    period: 100
    output:
      - vodka

  - name: fping_mtr
    type: fping_mtr
    interval: 3s
  - name: vodka
    type: vodka
    data:
      # We have to add a new data type to handle mtr data
      - type: fping_mtr
        handlers:
          - type: index
            index: host
          - type: store
            container: list
            limit: 100

  - name: vodka
    type: vodka
    data:
      - type: fping
        handlers:
          - type: index
            index: host
          - type: store
            container: list
            limit: 500

    apps:
      graphsrv:
        enabled: true
        graphs:
          multitarget:
            id_field: host
            type: multitarget
            plot_y: avg
            format_y: ms

          smokestack:
            id_field: host
            type: smokestack
            plot_y: avg

          mtr:
            id_field: host
            type: mtr

    plugins:

      - name: http
        type: flask
        bind: 0.0.0.0:8080
        debug: true
        static_url_path: /static
        server: self
        async: thread
        routes:
          /targets : graphsrv->targets
          /graph_data :
            methods:
              - POST
              - GET
            target: graphsrv->graph_data
          /graph : graphsrv->graph_view
          /overview_read_file : graphsrv->overview_read_file
          /: graphsrv->overview_view



logging:
  version: 1
  formatters:
    simple:
      format: '%(asctime)s - %(name)s - %(levelname)s: %(message)s'
  handlers:
    console:
      class: logging.StreamHandler
      level: DEBUG
      formatter: simple
      stream: ext://sys.stdout

    #file:
    #  class: logging.FileHandler
    #  level: DEBUG
    #  formatter: simple
    #  filename: /home/dev/sandbox/vaping/vaping.log

  loggers:
    vaping:
      level: DEBUG
      handlers:
        - console
        #- file
    vodka:
      level: DEBUG
      handlers:
        - console
        #- file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions