Skip to content

Conversation

jcpunk
Copy link
Collaborator

@jcpunk jcpunk commented Sep 19, 2025

Fixes #18

jcpunk added a commit to jcpunk/prometheus-cvmfs that referenced this pull request Sep 19, 2025
jcpunk added a commit to jcpunk/prometheus-cvmfs that referenced this pull request Sep 19, 2025
@jcpunk jcpunk mentioned this pull request Sep 19, 2025
@vvolkl
Copy link
Contributor

vvolkl commented Sep 24, 2025

Hmm, like this it will unfortunately only work with cvmfs versions older than 2.13.2 - with newer versions of cvmfs the script uses the output of cvmfs_talk -i <repo> metrics prometheus unchanged, in order to avoid the overhead of calling cvmfs_talk for each metric individually. So we'd have to update as well https://github.com/cvmfs/cvmfs/blob/devel/cvmfs/talk.cc#L926, cut another cvmfs release and add yet another version handling case to this script. This doesn't sound too appealing, maybe there is some kind of post-processing that we can do instead?

@jcpunk
Copy link
Collaborator Author

jcpunk commented Sep 24, 2025

maybe there is some kind of post-processing that we can do instead?

That sounds like a good approach. Any ideas?

I'm currently running this exporter ever 30 minutes and dumping to node_exporter text collector since once the host gets the files it needs cached the metrics are pretty level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add (optional) timestamp for metrics
2 participants