Giter Site home page Giter Site logo

theholm / meraki-dashboard-promethus-exporter Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 7.0 50 KB

Promethus exporter to collect data from Meraki dashboard via API

License: GNU General Public License v3.0

Python 97.39% Dockerfile 2.61%
prometheus-exporter meraki meraki-dashboard prometheus

meraki-dashboard-promethus-exporter's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

meraki-dashboard-promethus-exporter's Issues

00 Bad Request, {'errors': ['Site-to-site VPN not enabled in your organization']} when trying to get VPN info from org without VPNs.

2024-06-01 23:13:33       meraki:    ERROR > appliance, getOrganizationApplianceVpnStatuses - 400 Bad Request, {'errors': ['Site-to-site VPN not enabled in your organization']}
Exception in thread Thread-5 (get_vpn_statuses):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File /meraki-dashboard-promethus-exporter/meraki-api-exporter.py", line 25, in get_vpn_statuses
    vpnstatuses.extend(dashboard.appliance.getOrganizationApplianceVpnStatuses(organizationId=organizationId, total_pages="all"))
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/meraki-dashboard-promethus-exporter/venv/lib/python3.11/site-packages/meraki/api/appliance.py", line 2635, in getOrganizationApplianceVpnStatuses
    return self._session.get_pages(metadata, resource, params, total_pages, direction)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/meraki-dashboard-promethus-exporter/venv/lib/python3.11/site-packages/meraki/rest_session.py", line 401, in _get_pages_legacy
    response = self.request(metadata, 'GET', url, params=params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/meraki-dashboard-promethus-exporter/venv/lib/python3.11/site-packages/meraki/rest_session.py", line 300, in request
    raise APIError(metadata, response)
meraki.exceptions.APIError: appliance, getOrganizationApplianceVpnStatuses - 400 Bad Request, {'errors': ['Site-to-site VPN not enabled in your organization']}

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.