@Bean @ConfigurationProperties("metrics.export") @ExportMetricWriter public GaugeWriter openTsdbMetricWriter() { OpenTsdbGaugeWriter writer = new OpenTsdbGaugeWriter(); writer.setNamingStrategy(namingStrategy()); return writer; }
@Bean @ExportMetricWriter public RedisMetricRepository redisMetricWriter( RedisConnectionFactory connectionFactory) { return new RedisMetricRepository(connectionFactory, this.export.getRedis().getPrefix(), this.export.getRedis().getKey()); }
@Bean @ConfigurationProperties("metrics.export") @ExportMetricWriter public MetricWriter openTsdbMetricWriter() { OpenTsdbMetricWriter writer = new OpenTsdbMetricWriter(); writer.setNamingStrategy(namingStrategy()); return writer; }
@Bean @ExportMetricWriter /* * Prometheus is not capable to scrape json metrics so we need to expose the actuator metrics to jmx. Every * counter and gauge metrics are exposed too. */ public MetricWriter metricWriter(MBeanExporter exporter) { return new JmxMetricWriter(exporter); }
@Bean @ConditionalOnProperty("jhipster.logging.spectator-metrics.enabled") @ExportMetricWriter MetricWriter metricWriter() { return new SpectatorLogMetricWriter(); }
@Bean @ExportMetricWriter public LogstashMetricWriter metricWriter() { return new LogstashMetricWriter(); }
/** * Exports actuator metrics to JMX. */ @Bean @ExportMetricWriter public MetricWriter metricWriter(MBeanExporter exporter) { return new JmxMetricWriter(exporter); }
/** * Export a new {@link StatfulMetricWriter} metrics writer. * @return {@link MetricWriter} */ @Bean @ExportMetricWriter MetricWriter metricWriter() { return new StatfulMetricWriter(); }
@Bean @ExportMetricWriter public MetricWriter metricWriter(MetricExportProperties export) { return new RedisMetricRepository(redisConnectionFactory, export.getRedis().getPrefix(), export.getRedis().getKey()); }
@Bean @ExportMetricWriter public JmxMetricWriter jmxMetricWriter( @Qualifier("mbeanExporter") MBeanExporter exporter) { return new JmxMetricWriter(exporter); }
@Bean @ExportMetricWriter MetricWriter prometheusMetricWriter(CollectorRegistry registry) { return new PrometheusMetricWriter(registry); }
@Bean @ExportMetricWriter public MetricRepository metricRepository() { return new RedisMetricRepository(redisConnectionFactory); }