Giter Site home page Giter Site logo

asterisk_exporter's Introduction

asterisk exporter

Description

Montior calls in the asterisk core, include: active calls, active channels, call processed

Setup

  • do you have to install python3.4

  • Install prometheus module

$ pip3.4 install prometheus
  • Run it:
$ python3.4 asterisk_exporter.py
  - job_name: 'asterisk_exporter'
    scrape_interval: 30s
    scrape_timeout: 30s
    static_configs:
    - targets: ['192.168.1.115:9200']

asterisk_exporter's People

Contributors

tainguyenbp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

asterisk_exporter's Issues

active calls don't return the value instead returns SIP/SBCTrunk

Hello Nguyễn,
It's a great code and its working fine but when I try to get the active calls count it just returns the below line for 'asterisk_total_active_calls_metric' .

" asterisk_total_active_calls_metric{host="MS1",type="active calls"} SIP/SBCTrunk-0050763 "

It returns two values for this metric and we need one. so maybe that's the issue.

PS: I'm very naive in the topic so any help would be appreciated!

Thanks.

Code isnt working

This code isn't working for me. Can anyone please tell me stepwise what exactly I need to install?

Is it working?

Trying to run your code and got:

curl localhost:9200
curl: (52) Empty reply from server

Looks like it doesn't returns anything

expected value after metric, got "MNAME"

Hey. During an active call, Prometheus gives an error expected value after metric, got "MNAME"
promtool check metrics says "error while linting: text format parsing error in line 3: expected float as value, got" " "
After the call ends, everything works again.
How can you fix this error so that you can watch active calls?

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.