-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add InfluxDB exporter to Actuator #5688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It would indeed be a nice addition but I'm not sure if we'll get to it for 1.4 without some help. I've tagged as |
https://github.com/jmkgreen/spring-boot-actuator-influxdb is the raw code - copied almost verbatim from the OpenTSDB writer. Interestingly for InfluxDB it has both tags and fields. So where To start with the value is written to a field named simply |
See also #5701 |
The code has been updated. I now have a demo application that is successfully writing into InfluxDB. |
@jmkgreen how does influxdb deal with counters? I only see a |
If your question is "does influx accept a relative value" in order to increment a counter by some amount, it doesn't. It just records field=value pairs against a named metric. The line protocol takes a little getting used to due to metric names, fields, and tags. But it's the field values that rule out counters at the InfluxDB level. Influx does have derivative() in the query interface. I would suggest posting gauges in with a suitable tag value of the current process id for consumers to spot changes over time of individual processes. Looks like there are examples where metric names are checked for |
Configurable implementation of gauge writer to export metrics into InfluxDB. Fixes spring-projectsgh-5688
Configurable implementation of gauge writer to export metrics into InfluxDB. Fixes spring-projectsgh-5688
Configurable implementation of gauge writer to export metrics into InfluxDB. Fixes spring-projectsgh-5688
Configurable implementation of gauge writer to export metrics into InfluxDB. Fixes spring-projectsgh-5688
I test the implementation. It write gauge and counter only, and cannot set "retention policy" for InfluxDBWriter. Is there any plan to write metrics to influxDb? |
The above implementation has an issue with it that caused it to fail to send certain metrics. In InfluxDBMetricWriter the line Secondly, am I right in thinking that this won't work with Dropwizard metrics? Does it need some adaptor to work, or does it just need a different configuration (I'm using |
I will try to resurrect this. I've been working hard (commercially) with getting reporting of Spring Boot applications into data repositories such as DataDog and it is quite hard going when you uncover the range of issues at detail. We may well end up going InfluxDB for mass metric storage, possibly with New Relic to tell us what is wrong with performance. |
Is there anything I can help you with to get Influx integration into 1.5? I've been looking at the TICK Stack and it's looking pretty good. |
Unfortunately I need to de-scope some issues targeted for Spring Boot 1.5. I'd like to push this back since we want to review metrics in general. |
What's are the issues here? As far as I can see all it needs to be ready for 1.5 are autoconfig, standardised properties and an alternate configuration for Dropwizard. Am I missing something? I can understand reviewing metrics in general, but surely Influx support would follow the same patterns and changes as all the other metrics integrations? |
Looking at DB-Engines website's rankings of Time-series DBs, Influx is comfortably the most popular. |
There is a PR, but the author seems to have become demotivated. Maybe fixing that or providing an alternative would help move things along? |
I got the code from the PR working (and wrote up a simplified non-Dropwizard example as a blog post). |
This has been superseded by the planned move to Micrometer-based metrics (#9970) |
I am being pointed at InfluxDB by various people to record statistics, it would seem sensible to provide a MetricsWriter implementation for InfluxDB.
The InfluxDB side of things seems very well documented by them. Feels like this should be easy enough...
The text was updated successfully, but these errors were encountered: