Skip to main content

FreeSWITCH exporter for the Prometheus monitoring system.

Project description

Build Status Package Version

This is an exporter that exposes information gathered from FreeSWITCH for use by the Prometheus monitoring system.

Installation

pip install prometheus-freeswitch-exporter

Usage

usage: freeswitch_exporter [-h] [config] [port]

positional arguments:
  config      Path to configuration file (esl.yml)
  port        Port on which the exporter is listening (9724)
  address     Address to which the exporter will bind

optional arguments:
  -h, --help  show this help message and exit

Use :: for the address argument in order to bind to both IPv6 and IPv4 sockets on dual stacked machines.

Visit http://localhost:9724/esl?target=1.2.3.4 where 1.2.3.4 is the IP of FreeSWITCH to get metrics from. Specify the module request parameter, to choose which module to use from the config file.

The target request parameter defaults to localhost. Hence if freeswitch_exporter is deployed directly on the FreeSWITCH host, target can be omitted.

See the wiki for more examples and docs.

Authentication

Example esl.yml

default:
    port: 8021  # default port, can be omitted
    password: ClueCon

The configuration is passed directly into greenswitch.InboundESL().

FreeSWITCH Configuration

For security reasons it is essential to change the default passwort in FreeSWITCH autoload_configs/event_socket.conf.xml.

Prometheus Configuration

The FreeSWITCH exporter can be deployed either directly on a FreeSWITCH node or onto a separate machine.

Example config for FreeSWITCH exporter running on FreeSWITCH node:

scrape_configs:
  - job_name: 'freeswitch'
    static_configs:
      - targets:
        - 192.168.1.2:9724  # FreeSWITCH node with FreeSWITCH exporter.
        - 192.168.1.3:9724  # FreeSWITCH node with FreeSWITCH exporter.
    metrics_path: /esl
    params:
      module: [default]

Example config for FreeSWITCH exporter running on Prometheus host:

scrape_configs:
  - job_name: 'freeswitch'
    static_configs:
      - targets:
        - 192.168.1.2  # FreeSWITCH node.
        - 192.168.1.3  # FreeSWITCH node.
    metrics_path: /esl
    params:
      module: [default]
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9724  # FreeSWITCH exporter.

Grafana Dashboards

None yet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prometheus-freeswitch-exporter-1.0.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

prometheus_freeswitch_exporter-1.0.0-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file prometheus-freeswitch-exporter-1.0.0.tar.gz.

File metadata

  • Download URL: prometheus-freeswitch-exporter-1.0.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for prometheus-freeswitch-exporter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 24c57d4890cac900e25d4caca143a4dfb475389074b4ca4c710178e62493a719
MD5 c26592a1c148f7f8702987a8558a6b8b
BLAKE2b-256 ff1cd98f1a51a22c6d62faba9c1e030024e30a3d4ea783744b8db2653c16e431

See more details on using hashes here.

File details

Details for the file prometheus_freeswitch_exporter-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: prometheus_freeswitch_exporter-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/46.1.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for prometheus_freeswitch_exporter-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6225cb17a4b6857071ebb2a02abcfe311af1dbd6a07df9b220dd3ff0a233e010
MD5 b76f869e2835b9574520aac98f8e2ab0
BLAKE2b-256 b86b6c9cf4f7158ae5a5b7e9c30de3069c2a57293dd00838f3702975b3a3a484

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page