---
# System prepended metadata

title: Pelorus / Grafana validation
tags: [pelorus]

---

# Pelorus / Grafana validation
###### tags: `pelorus`

# Notes
https://github.com/zuchka/grafana-awesome#dashboard-exporting--syncing

# Grafana api for data export 
* not much there that is useful to verify the data represented by grafana
    * https://grafana.com/docs/grafana/latest/http_api/

# Beam
https://github.com/Beam-Connectivity/grafana-dashboard-manager

self signed cert failure





# Beam detailed error, ssl certs ( I don't think we want to have to deal w/ cert setup)

```
(virtenv) [whayutin@thinkdoe grafana-dashboard-manager]$ poetry run grafana-dashboard-manager     --host https://oadp-ci.usersys.redhat.com:8080     --username admin --password admin     download all     --destination-dir DASHBOARD_DOWNLOAD
[12:45:24] INFO     Pulling all dashboards into /var/tmp/GRAFANA_DASHBOARD_MANAGER/grafana-dashboard-manager/DASHBOARD_DOWNLOAD...                                     dashboard_download.py:43
Traceback (most recent call last):
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
    conn = self._new_conn()
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f32b0d7ceb0>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='oadp-ci.usersys.redhat.com', port=8080): Max retries exceeded with url: /api/folders (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f32b0d7ceb0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/typer/main.py", line 500, in wrapper
    return callback(**use_params)  # type: ignore
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/grafana-dashboard-manager/grafana_dashboard_manager/dashboard_download.py", line 46, in all
    folders = grafana.api.get("folders")
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/grafana-dashboard-manager/grafana_dashboard_manager/api.py", line 37, in get
    response = requests.get(f"{self.host}/api/{resource}", auth=(self.username, self.password))
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/var/tmp/GRAFANA_DASHBOARD_MANAGER/virtenv/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='oadp-ci.usersys.redhat.com', port=8080): Max retries exceeded with url: /api/folders (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f32b0d7ceb0>: Failed to establish a new connection: [Errno -2] Name or service not known'))


```