Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(inputs.influxdb): Add metrics for build, crypto and commandline #15438

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented May 31, 2024

Summary

Add newer debug variables as metrics as they are not following the "point" structure and are thus missing from the output.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #15437

@telegraf-tiger telegraf-tiger bot added area/influxdb feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels May 31, 2024
@telegraf-tiger
Copy link
Contributor

@cpinflux
Copy link

Yep, tested, all looks good to me:

influxdb_system,host=thinkpad,url=http://localhost:8086/debug/vars current_time="2024-05-31T14:34:58.007163511Z",started="2024-05-31T07:00:47.166996802Z",uptime=27250i 1717166098001000000
influxdb_build,host=thinkpad,url=http://localhost:8086/debug/vars branch="unknown",build_time="",commit="d97e21d4473164bb3ba0055ecd1971f2529b6d82",version="v1.11.5" 1717166098001000000
influxdb_cmdline,host=thinkpad,url=http://localhost:8086/debug/vars value="influxd" 1717166098001000000
influxdb_crypto,host=thinkpad,url=http://localhost:8086/debug/vars fips=false,ensure_fips=false,implementation="Go",password_hash="bcrypt;cost=10" 1717166098001000000
influxdb_memstats,host=thinkpad,url=http://localhost:8086/debug/vars lookups=0i,heap_objects=2229313i,mspan_sys=3443520i,buck_hash_sys=2007190i,sys=402510168i,heap_alloc=192608208i,heap_inuse=201457664i,mcache_sys=15600i,last_gc=1717166088714938154i,pause_total_ns=278528790i,total_alloc=221448941752i,mallocs=149625600i,mcache_inuse=14400i,alloc=192608208i,heap_idle=171048960i,stack_inuse=4980736i,next_gc=250828408i,mspan_inuse=2172000i,num_gc=2295i,heap_sys=372506624i,heap_released=120774656i,gc_sys=17204952i,other_sys=2351546i,pause_ns=47324i,gc_cpu_fraction=0.0006764002225301153,frees=147396287i,stack_sys=4980736i 1717166098001000000

@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 31, 2024
@DStrand1 DStrand1 merged commit ceba179 into influxdata:master Jun 4, 2024
26 of 27 checks passed
@github-actions github-actions bot added this to the v1.31.0 milestone Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/influxdb feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Telegraf Influxdb input: Add missing data from debug vars
4 participants