metricq-python
metricq-python copied to clipboard
🐍 The MetricQ Python interface
While connecting to client, I am getting following error ``` raise ValueError("password replacement is not allowed for relative URLs") ValueError: password replacement is not allowed for relative URLs ``` I...
When the PandasHistoryClient creates aggregate timelines, any interval with count=0 will lead to a division by zero in `mean_sum` (and probably in `interval_sum` as well anyway). We probably want NaN...
The timezone in our dataframe is not set, hence, it uses UTC timestamp but treats it as localtime.
- [ ] Function `check_metric_name` (function name tbd) that raises a value error if a metric name is invalid. - [ ] Apply this to all interface - [ ]...
The documentation is missing the flex timeline in the how-to section.
The `url` parameter to `Agent.__init__()` is supposed to contain the login information of the user connecting to MetricQ. For logging, it would be nice to have a redacted property available....
In the Github Packages example the action [docker/metadata-action](https://github.com/docker/metadata-action) is used to prepare the tags and labels for the docker image. Maybe we could substitute our [manual prep step](https://github.com/metricq/metricq-python/blob/master/.github/workflows/docker.yml#L20-L45) with this...
This method is used in parsing HistoryResponse in the metricq-grafana endpoint for the timeline request. The active_time attribute would allow us to draw the last (or only) aggregate in the...
The following code should work: ``` c = HistoryClient(...) await c.connect() response = await c.history_raw_timeline(...) data = [(timestamp, value) for timestamp, value in response] assert len(data) > 0 data =...
While we try to reestablish connections only at a "low" rate (default: every 30s), we should limit the total amount of connection retries. If a client fails too many reconnect...