Skip to main content

GitHub GitHub Repo stars GitHub issues PyPI - Status PyPI PyPI - License PyPI - Format PyPI - Python Version Release

nordvpn Prometheus Exporter

This is not official NordVPN exporter.

A simple exporter fetch info from nordvpn cli.

Why?

To monitor remote devices VPN connection. In my case, I use RaspberryPi4 and run nordvpn in docker

Dependency

  • nordvpn cli.
    • Installation guide here

Install

$ pip3 install nordvpn_exporter

Usage

$ nordvpn_exporter --help
usage: nordvpn_exporter [-h] [-d] [-p PORT] [-v]

Simple NordVPN exporter

optional arguments:
  -h, --help  show this help message and exit
  -d          Run as daemon
  -p PORT     Port
  -v          show program's version number and exit
  • Run exporter directly and curl http://localhost:8082/metrics in another terminal
$ nordvpn_exporter 
Starting NordVPN Exporter on http://localhost:8082
  • I created a simple "daemonize" option to run exporter background
$ nordvpn_exporter -d
Starting NordVPN Exporter on http://localhost:8082
[*] Running in background

$ curl http://localhost:8082/metrics | head
#=#=-#     #                                                                                                                                     
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 264.0
python_gc_objects_collected_total{generation="1"} 33.0
python_gc_objects_collected_total{generation="2"} 0.0
# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0

Release files for nordvpn-exporter 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nordvpn-exporter 1.1
File Size Uploaded
nordvpn_exporter-1.1.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nordvpn-exporter 1.1
File Interpreter ABI Platform
nordvpn_exporter-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / nordvpn_exporter-1.1.tar.gz

Download URL nordvpn_exporter-1.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
138b25508fa1285184c5a3bcb5dbd86d5f2c36e1833dc965be5c21df224094db
BLAKE2b-256 checksum
How to use checksums
0116794ff71be8ec045fadeb700411cd0ed7bea7971005824adc8ae43bf37484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.8.0 tqdm/4.62.2 CPython/3.8.10

Release files / nordvpn_exporter-1.1-py3-none-any.whl

Download URL nordvpn_exporter-1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c991e3207e09009e97bfd4a65a530a6eb33ab489b37a6b65520107b2ccce6162
BLAKE2b-256 checksum
How to use checksums
4deff684f703876d2f991e0bdb5caf59687b94b3c3ae3b3687d83361fb1647e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.8.0 tqdm/4.62.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page