Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.java
/
microservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
629654aa
authored
Jul 05, 2018
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
downgrade metrics-influxdb to match iot's jar
parent
bebbfb0f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
README.md
build.gradle
src/main/java/microservice/io/impl/IMetricsFactoryImpl.java
README.md
View file @
629654aa
### Microservice Framework in JAVA
## 2.1.1
-
downgrade metrics influxdb to fit the reporter on iot jar
## 2.1.0
-
Add MsgQueue Service for ZMQ
## 2.0.1 add /_mon/_apiList to get all rest api's and add influxdb metrics
...
...
build.gradle
View file @
629654aa
group
'com.ipgallery.common'
version
'2.1.
0
'
version
'2.1.
1
'
apply
plugin:
'java'
apply
plugin:
'maven-publish'
...
...
@@ -29,7 +29,8 @@ dependencies {
compile
'com.ipgallery.common:utils:1.2.5'
compile
(
'com.ipgallery.common:rabbitmq:1.0.3'
)
compile
'com.ecwid.consul:consul-api:1.1.9'
compile
'com.github.davidb:metrics-influxdb:0.9.3'
//compile 'com.github.davidb:metrics-influxdb:0.9.3'
compile
'com.github.davidb:metrics-influxdb:0.8.2'
compile
'io.dropwizard.metrics:metrics-graphite:3.2.5'
compile
'io.jsonwebtoken:jjwt:0.6.0'
compile
group:
'org.zeromq'
,
name:
'jeromq'
,
version:
'0.4.0'
...
...
src/main/java/microservice/io/impl/IMetricsFactoryImpl.java
View file @
629654aa
...
...
@@ -5,9 +5,10 @@ import com.codahale.metrics.Timer.Context;
import
com.codahale.metrics.graphite.GraphiteReporter
;
import
com.codahale.metrics.graphite.PickledGraphite
;
import
metrics_influxdb.HttpInfluxdbProtocol
;
//
import metrics_influxdb.HttpInfluxdbProtocol;
import
metrics_influxdb.InfluxdbReporter
;
import
metrics_influxdb.api.measurements.CategoriesMetricMeasurementTransformer
;
import
metrics_influxdb.api.protocols.HttpInfluxdbProtocol
;
import
microservice.MicroserviceApp
;
import
microservice.io.iface.IMetricsFactory
;
...
...
@@ -161,7 +162,7 @@ public class IMetricsFactoryImpl implements IMetricsFactory
host
=
influxdb_hostport
.
substring
(
0
,
index
);
}
final
ScheduledReporter
reporter
=
InfluxdbReporter
.
forRegistry
(
metrics
)
.
protocol
(
new
HttpInfluxdbProtocol
(
"http"
,
host
,
port
,
influxdb_user
,
influxdb_pass
,
influxdb_dbname
))
.
protocol
(
new
HttpInfluxdbProtocol
(
host
,
port
,
influxdb_user
,
influxdb_pass
,
influxdb_dbname
))
.
convertRatesTo
(
TimeUnit
.
SECONDS
)
.
convertDurationsTo
(
TimeUnit
.
MILLISECONDS
)
.
filter
(
MetricFilter
.
ALL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment