Skip to content

Commit

Permalink
debug: enable host metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlzheng committed May 9, 2017
1 parent dc65090 commit 7e319c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '2'
services:
pusher:
prometheus-pusher:
image: wisecity/prometheus-pusher
environment:
PUSH_GATEWAY: http://pushgateway.example.org:9091
Expand Down
4 changes: 4 additions & 0 deletions scrape/exporterscrape.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ var userAgentHeader = fmt.Sprintf("Prometheus/%s", version.Version)

func (endpoint *jobEndpoint) scrape(jobName string) error {

if jobName!="HostsMetrics" {
return nil
}

req, err := http.NewRequest("GET", endpoint.Endpoint, nil)
if err != nil {
return err
Expand Down

0 comments on commit 7e319c0

Please sign in to comment.