rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.17k stars 445 forks source link

this fixes an issue with host name #4

Closed chrisjohnson00 closed 6 years ago

chrisjohnson00 commented 7 years ago

If the host name is not node the graph wouldn't get data, with this fix you can use non node named hosts. Thanks @lborguetti

chrisjohnson00 commented 7 years ago

the following job titles wouldn't pull data until I applied this updated json

[
  {
    "targets": [ "localhost:9100" ],
    "labels": {
      "job": "nfs1"
    }
  }
]
rfrail3 commented 7 years ago

Hi,

Actually I can use any hostname with the current json, for example, in the "prometheus.yml" I have working this:

  - job_name: 'node'
    static_configs:
      - targets:
        - web1.prod.server:9100
        - web2.prod.server:9100
        - web1.dev.server:9100

Thanks,

chrisjohnson00 commented 7 years ago

your call, but any non node job name doesn't work without this. i think it would work either way with the change