Comments (5)
The textfile module is a better way to do this, and we want to get rid of the config file.
For example you can drop in a file to it with the content:
attributes{myauoracluster="A"} 1
from node_exporter.
That doesn't fo what I described. I want to know what the total used disk space is across nodes in cluster 'a', for instance, so I want the fs metrics to all have a cluster label. Your solution doesn't help with that.
Also, I only have a couple of such labels, so putting them in a flag is fine.
from node_exporter.
For that you need to configure that as target labels in the prometheus config, no feature of the node exporter can do that for you.
Set labels
in the prometheus config to do this, see https://github.com/prometheus/prometheus/blob/master/config/config.proto#L48
from node_exporter.
Setting custom server-side labels only works for statically configured targets at the moment (that will change when we add more generalized SD support).
What @swsnider suggests would add a separate set of time series that would contain attribute information about this exporter. These could be correlated via and
and the instance label with the other time series outputted by the node exporters to select only a certain group of exporters. That might be fine too?
But yeah, there's currently no node exporter feature to just add a label to every time series exported, if that is what you want.
from node_exporter.
These days we have both all the support needed to do this via the attribute approach, and service discovery in Prometheus would also allow you to do this in few ways including file_sd discovery. Setting target labels on an exporter is an anti-pattern we want to avoid, that concern belongs on the Prometheus server.
from node_exporter.
Related Issues (20)
- Can't see node_filesystem_size_bytes for a mountpoint HOT 10
- node_disk_* not working on almalinux 8 ? HOT 3
- Bug in OpenBSD CPU stats - Metrics appear to be only ~1/10th of the actual values HOT 1
- Build node_exporter, there is an error message HOT 2
- node_exporter goes into crashLoopBackoff after node reboot and never recovers HOT 2
- Update golang version to 1.22 HOT 1
- Getting yaml: unmarshal errors HOT 3
- node_timex_maxerror_seconds still 16 HOT 1
- Starting a Docker container on macOS based on the README but still monitoring the container itself HOT 3
- feat: support to get rotational of the disk. HOT 2
- Feat: consider adopting procfs lib FS.Meminfo() for memory collector HOT 1
- node_disk_reads_completed_total values do not update after startup. HOT 5
- node_exporter uses noticable CPU time on a large server HOT 10
- Update node_exporter to fix CVE-2023-48795 HOT 2
- SELinux collector returns wrong value HOT 1
- Update node_exporter to fix CVE-2023-48795 HOT 2
- Network card status confuses me HOT 1
- filetem ntrices prompts that the string description is inaccurate
- feat: `SUPPORT_END` from `/etc/os-release`
- --collector.disable-defaults doesn't disable cpu metric HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node_exporter.