Comments (2)
I'm not sure why it creates a map and loops there as it will only have iteration.
This code was originally for some polling use-cases based on the table types that we had use-cases for at the time. They were all essentially lists with two columns: key
and value
. So it needed to extract the value of the key
column and map it to the value of the value
column. For example, system properties are mapped into JMX in that way:
It sounds like you are trying to read something that has a different table structure. That is it has potentially many columns and the key is actually the column name. I don't think that would work as it is written today. Not sure how easy it would be to support as somehow the structure of the table would need to be understood for a given mbean. So there would need to be some configuration.
At Netflix we do not currently use the Servo JmxMetricPoller and in general Servo is in maintenance mode. We do have some use-cases for extracting data via JMX that are handled by the spectator-ext-jvm library. It supports configurations for what data to fetch and how to map it in. Not sure if it would support the table formats at this time as the mapping has been mostly focused on use-cases we have. So we add to it as we have the need. That said, PRs are welcome if you have a suggestion for improving it.
from servo.
Ah, understood! My case looks something like this:
Each row in the table is considered a key-value pair (i.e. "time" is the key and get("time") would be it's value, 332). The table itself is an instance of the CompositeData class. There can be multiple CompositeData instances (i.e multiple tables) associated with one attribute. If I can suggest an improvement I will submit a PR.
from servo.
Related Issues (20)
- PollScheduler maximum threads? Configurable? HOT 2
- CloudWatchMetricObserver.putMetricData swallows AmazonServiceException HOT 2
- CloudWatchMetricObserver not pushing metrics to CloudWatch HOT 3
- Memory leak suspect in BasicMonitorRegistry HOT 14
- Observer for InfluxDb HOT 2
- Booleans not changed into int values by MonitorRegistryMetricPoller HOT 4
- AwsInjectableTag should be lazily initialised HOT 1
- Support CloudWatch high-resolution metrics HOT 5
- StepCounters loose increments when poll is behind schedule HOT 3
- Heapdump support? HOT 1
- release build failed because it tried to publish for jdk9
- System.getProperties() in DefaultMonitorRegistry.java HOT 3
- Sometimes deploying a zuul project can cause such problems. HOT 1
- .travis.yml: The 'sudo' tag is now deprecated in Travis CI
- upgrade Guava dependency to something recent HOT 6
- Ufyfug
- Hello
- Integration of servo-core into OSS-Fuzz HOT 1
- Netflib
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 servo.