mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
Merge branch 'master' into update-mountstats
This commit is contained in:
commit
1cf2de9f26
|
@ -26,10 +26,10 @@ For automated installs with [Ansible](https://www.ansible.com/), there is the [P
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
The `node_exporter` is designed to monitor the host system. It's not recommended
|
The `node_exporter` is designed to monitor the host system. Deploying in containers requires
|
||||||
to deploy it as a Docker container because it requires access to the host system.
|
extra care in order to avoid monitoring the container itself.
|
||||||
|
|
||||||
For situations where Docker deployment is needed, some extra flags must be used to allow
|
For situations where containerized deployment is needed, some extra flags must be used to allow
|
||||||
the `node_exporter` access to the host namespaces.
|
the `node_exporter` access to the host namespaces.
|
||||||
|
|
||||||
Be aware that any non-root mount points you want to monitor will need to be bind-mounted
|
Be aware that any non-root mount points you want to monitor will need to be bind-mounted
|
||||||
|
|
|
@ -205,7 +205,7 @@ func (c *cpuCollector) updateInfo(ch chan<- prometheus.Metric) error {
|
||||||
|
|
||||||
cpuFreqEnabled, ok := collectorState["cpufreq"]
|
cpuFreqEnabled, ok := collectorState["cpufreq"]
|
||||||
if !ok || cpuFreqEnabled == nil {
|
if !ok || cpuFreqEnabled == nil {
|
||||||
level.Debug(c.logger).Log("cpufreq key missing or nil value in collectorState map", err)
|
level.Debug(c.logger).Log("msg", "cpufreq key missing or nil value in collectorState map")
|
||||||
} else if !*cpuFreqEnabled {
|
} else if !*cpuFreqEnabled {
|
||||||
for _, cpu := range info {
|
for _, cpu := range info {
|
||||||
ch <- prometheus.MustNewConstMetric(c.cpuFrequencyHz,
|
ch <- prometheus.MustNewConstMetric(c.cpuFrequencyHz,
|
||||||
|
|
Loading…
Reference in a new issue