crafana
Version, currently 1.0.115 versions
- 1.0.1latestMar 23, 2021
- 1.0.0not indexedJan 26, 2024
- 0.2.0not indexedJan 26, 2024
- 0.1.11not indexedJan 26, 2024
- 0.1.10not indexedJan 26, 2024
- 0.1.9not indexedJan 26, 2024
- 0.1.8not indexedJan 26, 2024
- 0.1.7not indexedJan 26, 2024
- 0.1.6not indexedJan 26, 2024
- 0.1.5not indexedJan 26, 2024
- 0.1.4not indexedJan 26, 2024
- 0.1.3not indexedJan 26, 2024
- 0.1.2not indexedJan 26, 2024
- 0.1.1not indexedJan 26, 2024
- 0.1.0not indexedJan 26, 2024
github.com/spoved/crafana.cr
Crystal library to help autogenerate Grafana dashboards
21 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crafana:
github: spoved/crafana.cr
version: ~> 1.0.1Then run:
shards installshard.yml
- Crystal
1.0.0- License
- MIT
- Author
- Holden Omans <holden.omans@gmail.com>
- Target
crafanafrom src/bin/crafana.cr
Dependencies
Runtime Dependencies
- clim*github: kalinon/clim, branch: patch-1
- colors*github: kalinon/colors-and-gradients, branch: patch-1
- spoved>= 0.5.1github: spoved/spoved.cr
Development Dependencies
README
# Crafana [](https://travis-ci.org/spoved/crafana.cr)
This library is intended to help autogenerate Grafana dashboards
## Installation
Add the dependency to your project's `shard.yml`:
```yaml
dependencies:
crafana:
github: spoved/crafana.cr
```
## Usage
### Builder
The `Crafana::Builder` can be used to generate dashboards and sub panels.
```crystal
builder = Crafana::Builder.new
builder.add_dashboard("My new dash") do |dash|
# Add sub panels to the dashboard here
dash.add_row("row 1") do |row|
# Configure row here
end
dash.add_graph("graph 1") do |graph|
# Configure graph here
end
end
```
The dashboard json can be exported via the `to_json` method.
```crystal
builder.dashboards.first.to_json
```
## Contributing
1. Fork it (<https://github.com/spoved/crafana/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Holden Omans](https://github.com/kalinon) - creator and maintainer
- [Christian Nicolai](https://github.com/cmur2) - Superuser!
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.1- Tagged
- Mar 23, 2021
- Commit
a66cfe4a654a- Crystal
1.0.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/spoved/crafana.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 15