Comments (3)
It sounds like a useful addition, but I'm trying to do it keep the binary size down so irtt can be run on embedded devices.
If I compile the binary as is, the size is 3983781. If I compile referencing the prometheus libs, the size increases 10049128. So, it's not something I would add by default. It could be done with build tags. Another option is to write a separate program to take the json and do whatever you want to do with prometheus separately.
I'll leave the issue open in case someone wants to work on it...
from irtt.
Re: Seperate program taking JSON, I did start experimenting with that, but quickly found it would be nice if irtt codebase was made more friendly for use as a go library.
For example, I thought I the obvious easy solution would be to Unmarshal into the JSON struct from your codebase, but that failed miserably ( I can't remember the error now since I abandoned that test code but something like "unable to unmarshal text into irtt.Time") so I ended up having to write up my own structs.
Also in general, making it easier to call measurement runs directly from go instead of having to call-out to exec.command()
from irtt.
Right, it could be useful. If someone writes it and keeps it opt-in with build tags I'll consider pulling that in...
from irtt.
Related Issues (20)
- "ShortReply" error when running on Windows HOT 9
- RTTs can be highly inaccurate on Windows HOT 9
- Getting "undefined" message when installing (Win10) HOT 5
- Thanks for irtt HOT 2
- Creating an RPM .spec file HOT 8
- Client Port
- why send delay is a negative number HOT 1
- use irtt as a library HOT 2
- ios version? HOT 1
- allow IPv6 addresses without brackets
- switch to Lookup* methods for name resolution
- cmsg support HOT 1
- being able to plot cleanly from the command line HOT 1
- Consider switching to crypto/Rand HOT 1
- smokeping probe configuration HOT 1
- SPDX tags in the source files? HOT 2
- Support for continuous use for connection monitoring? HOT 1
- IRTT and Cloudflare tunneling support/setup? HOT 1
- README.md `go get` is deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irtt.