weaveworks / grafanalib

Python library for building Grafana dashboards
Apache License 2.0
1.87k stars 311 forks source link

Main add graph unit #632

Closed padraic-padraic closed 1 year ago

padraic-padraic commented 1 year ago

With thanks to my colleagues Damiano Gianotti (https://github.com/D3mianGianoz) and Ianthe Michiels.

What does this do?

Adds the option to specify the unit for a standard core.Graph panel. This feature was implemented for the core.TimeSeries panel, but not yet for Graph.

Why is it a good idea?

It brings a bit of feature parity between the two standard panel types.

Context

For older grafana versions, Graph is the default visualisation, and is still supported (if deprecated). Having feature parity between the two panel types makes it easier to then transition to the TimeSeries panel in the future.

Questions