grafana-toolbox / grafana-client

Python client library for accessing the Grafana HTTP API.
MIT License
106 stars 30 forks source link

allow setting the session pool size in niquests #190

Closed sjoeboo closed 1 month ago

sjoeboo commented 1 month ago

Description

adds ability to set the session pool size in niquests when needed:

grafana = GrafanaApi.from_url(
    url=GRAFANA_URL, credential=TokenAuth(token=GRAFANA_API_TOKEN)
)
grafana.client.timeout = 60
grafana.client.session_pool_size = 32

Checklist

sjoeboo commented 1 month ago

addresses #189

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.29%. Comparing base (7303ec2) to head (dcca2ae). Report is 48 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #190 +/- ## ========================================== - Coverage 94.44% 92.29% -2.16% ========================================== Files 26 27 +1 Lines 1711 1816 +105 ========================================== + Hits 1616 1676 +60 - Misses 95 140 +45 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.