1. 13 May, 2015 16 commits
    • Dave Syer's avatar
      Add JMX to Redis sample · 0ce72105
      Dave Syer authored
      0ce72105
    • Dave Syer's avatar
      Add support for sendLatest=true/false in exporter · 089b1d05
      Dave Syer authored
      Also fix bug in includes/excludes
      089b1d05
    • Dave Syer's avatar
      3fda7445
    • Dave Syer's avatar
      Add support for metric export to OpenTSDB · 60a49435
      Dave Syer authored
      60a49435
    • Dave Syer's avatar
      Add sample for Redis metric exporter · 18928a62
      Dave Syer authored
      18928a62
    • Dave Syer's avatar
    • Dave Syer's avatar
    • Dave Syer's avatar
      Add support for Statsd metric export · 0bd845d1
      Dave Syer authored
      0bd845d1
    • Dave Syer's avatar
      Add AggregateMetricReader able to aggregate counters and gauges · 0fde04d3
      Dave Syer authored
      Different physical sources for the same logical metric just need to
      publish them with a period-separated prefix, and this reader will
      aggregate (by truncating the metric names, dropping the prefix).
      
      Very useful (for instance) if multiple application instances are
      feeding to a central (e.g. redis) repository and you want to
      display the results. Useful in conjunction with a
      MetricReaderPublicMetrics for hooking up to the /metrics endpoint.
      0fde04d3
    • Dave Syer's avatar
      Add JmxMetricWriter for exporting metric values to MBeans · 710423d1
      Dave Syer authored
      User can add a @Bean of type JmxMetricWriter and get all values
      automatically exported in a form that is usable in jconsole
      or jvisualvm.
      710423d1
    • Dave Syer's avatar
      Add support for includes and excludes patterns in MetricCopyExporter · 5edc404a
      Dave Syer authored
      Also rename Codahale* to Dropwizard* and move them to a new package
      5edc404a
    • Dave Syer's avatar
      Add counter and gauge services based on in-memory buffers · 53a61474
      Dave Syer authored
      This seems pretty efficient (approx 12M write/s as opposed to 2M with
      the DefaultCounterService). N.B. there is no need to change most of
      the rest of the metrics stuff because metrics are write-often, read-
      seldom, so we don't need high performance reads as much.
      
      The Spring Integration configuration and Dropwizard support has changed
      a bit. Functionally very similar and probably opaque to users, but now
      the messaging operates as an Exporter on a @Scheduled method, and
      Dropwizard is a replacement [Gauge,Counter]Service.
      
      Metrics are all
      collected live in-memory (and can be very fast with Java 8), buffered
      there and shipped out to a MessageChannel (if one exists with id
      "metricsChannel") in a background thread.
      
      We can still use Java 8 library APIs (like LongAdder) but to compile
      to java 7 compatible byte code we have to forgo the use of lambdas :-(
      and shorthand generics (<>).
      
      Fixes gh-2682, fixes gh-2513 (for Java 8 and Dropwizard users).
      53a61474
    • Stephane Nicoll's avatar
      Expose caching-specific infrastructure · 1b3efd41
      Stephane Nicoll authored
      Expose the underlying cache infrastructure bean if Boot auto-configures
      it. This is the case for ehCache, hazelcast and JCache. This change has
      two side effects:
      
      1. It is now possible to customize the underlying cache infrastructure
      and let Boot only wrap it in the Spring's CacheManager abstraction. No
      customizations are applied if the caching-specific service is customized
      2. Such infrastructure is disposed when the application terminates as
      it is now defined as `@Bean` and both `close()` and `shutdown()` methods
      are invoked if present on the target type.
      
      While the latter can be troublesome, we feel that a particular cache
      instance is not meant to be shared and must be disposed when the
      application terminates.
      
      Closes gh-2848
      1b3efd41
    • Stephane Nicoll's avatar
      polish · b20d11fe
      Stephane Nicoll authored
      Rework 155c60b7 to structure the code consistently, in particular with a more
      natural order of attributes. Update test to use non-default values to ensure
      that the customization has been applied.
      
      See gh-2793
      b20d11fe
    • Eddú Meléndez's avatar
      Add extra attributes to the init command · 0b8fd675
      Eddú Meléndez authored
      Update the CLI init command to expose additional attributes supported
      by Spring Initializr. These are: groupId, artifactId, version, name,
      description and language.
      
      Closes gh-2793 and gh-2907
      0b8fd675
    • Andy Wilkinson's avatar
      Polish 18453c0e · d4dfa8d9
      Andy Wilkinson authored
      Document new configuration properties and remove redundant code
      d4dfa8d9
  2. 12 May, 2015 3 commits
    • Andy Wilkinson's avatar
      Allow JspServlet's init parameters to be configured via the environment · 18453c0e
      Andy Wilkinson authored
      This commit adds support for configuring the JSP servlet’s init
      parameters via the environment using server.jsp-servlet.init-parameters.*.
      As part of this change the configuration of registerJspServlet and
      jspServletClassName have been moved onto a new type, JspServlet, and the
      existing setters on ConfigurableEmbeddedServletContainer have been 
      deprecated. In addition to providing a model for configuring the JSP
      servlet that’s consistent with the model for other configuration (SSL,
      for example), this change also means that the class name and whether or
      not the servlet is registered at all can now also be configured via the
      environment.
      
      Closes gh-2825
      18453c0e
    • Andy Wilkinson's avatar
      Fix test that was broken in b24e736c · 63a7b24d
      Andy Wilkinson authored
      63a7b24d
    • Dave Syer's avatar
      Add env var parameters to launch.script · b24e736c
      Dave Syer authored
      Some of the features of the launch.script were not exposed for users
      to be able to control at runtime. It now accepts things like
      PID_FOLDER and LOG_FOLDER as environment variables, and also adopts
      a clear naming convention where only the inputs are UPPER_CASE.
      b24e736c
  3. 11 May, 2015 14 commits
  4. 07 May, 2015 2 commits
    • Andy Wilkinson's avatar
      Ensure that javadoc is generated in a full build · 8f5b88c3
      Andy Wilkinson authored
      For reasons that I don’t understand, Maven has decided to stop running
      the javadoc:jar task as part of the package phase. It appears to be
      related to the addition of the build-helper plugin in
      spring-boot-dependencies. Binding javadoc:jar to the prepare-package
      phase convinces Maven to run it, apparently without any unwanted side
      effects.
      8f5b88c3
    • Andy Wilkinson's avatar
      Support bom-based dependency management in the CLI · 51c49b69
      Andy Wilkinson authored
      Previously, the CLI’s dependency management used proprietary Properties
      file-based metadata to configure its dependency management. Since
      spring-boot-gradle-plugin’s move to using the separate dependency
      management plugin the CLI was the only user of this format.
      
      This commit updates the CLI to use Maven boms to configure its
      dependency management. By default it uses the spring-boot-dependencies
      bom. This configuration can be augmented and overridden using the new
      @DependencyManagementBom annotation which replaces @GrabMetadata.
      
      Closes gh-2688
      Closes gh-2439
      51c49b69
  5. 06 May, 2015 5 commits