grafanim
Grafana module for Nim
Summary
| Latest Version | Unknown |
|---|---|
| License | GPL |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install grafanim
choosenim install grafanim
git clone https://github.com/jamesalbert/grafanim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| grafanim | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/jamesalbert/grafanim |
|---|---|
| Homepage | https://github.com/jamesalbert/grafanim |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
Grafanim
Grafana module for nim 🤷♂️
Installing
nimble install grafanim
Development
$ make up # bring up docker
$ make test # to run tests/test.nim
$ make ssh # run bash in grafanim container (*air quotes* ssh *end air quotes*)
It's not really a "testing environment", just a container to mess around with api calls.
Examples
Credentials are defaults for InfluxDB and Grafana
import grafanim, json
let gc = newGrafanaClient("grafana:3000", "admin", "admin") # or ("grafana:3000", "api-key")
echo gc.NewDashboard( %* {
"title": "new dash"
})
echo gc.NewInfluxDBDatasource( %* {
"host": "localhost",
"name": "BTCUSD",
"database": "btc_usd",
"user": "root",
"pass": "root"
})
echo gc.Datasources()
echo gc.Dashboards()