Skip to content

Commit

Permalink
Path modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikWegner committed Feb 7, 2018
1 parent 2d31680 commit 3f6dcbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beater/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func GetStatsFromServer(config config.Config) ([]byte, error) {
case "cxfCounter":
url += "read/org.apache.cxf:bus.id=*,operation=\"*\",port=\"*\",service=\"*\",type=Performance.Counter.Server"
case "cxfMetrics":
url += "org.apache.cxf:bus.id=*,type=Metrics.Server,service=*,port=*,Operation=*,Attribute=*"
url += `read/org.apache.cxf:bus.id=*,type=Metrics.Server,service=*,port=*,Operation=*,Attribute=*`
}

resp, err := http.Get(url)
Expand Down
2 changes: 1 addition & 1 deletion beater/jolokiaperfbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (bt *Jolokiaperfbeat) Run(b *beat.Beat) error {
} else {
for key, value := range perfCounters.Counters {
sd := ServiceDataExtract(key)
fmt.Println("Key:", key, "Value:", value)
logp.Debug("Counters", "Key: %s, Value: %+v", key, value)
event := CreateEvent(counter, b.Name, sd, value)
bt.client.PublishEvent(event)
logp.Info("Event sent")
Expand Down
3 changes: 3 additions & 0 deletions jolokiaperfbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jolokiaperfbeat:
period: 300s
# Base url for jolokia, e.g. http://jboss.acme.local:8080/jolokia/
baseurl: "http://jboss.acme.local:8080/jolokia/"
# Performance feature:
# cxfCounter | cxfMetrics
provider: "cxfMetrics"

#================================ General =====================================

Expand Down

0 comments on commit 3f6dcbe

Please sign in to comment.