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

Alias not working #124

Open
renatoornelas opened this issue Aug 16, 2022 · 3 comments
Open

Alias not working #124

renatoornelas opened this issue Aug 16, 2022 · 3 comments
Assignees

Comments

@renatoornelas
Copy link

renatoornelas commented Aug 16, 2022

Hi,

We have some metrics that doesn't convert to the alias short name:

# HELP _lldp_state_counters_frame_in JTIMON Metric
# TYPE _lldp_state_counters_frame_in untyped
_lldp_state_counters_frame_in{device="XXXX"} 1086
# HELP _lldp_state_counters_frame_out JTIMON Metric
# TYPE _lldp_state_counters_frame_out untyped
_lldp_state_counters_frame_out{device="XXXX"} 1174
# HELP _lldp_state_counters_tlv_accepted JTIMON Metric
# TYPE _lldp_state_counters_tlv_accepted untyped
_lldp_state_counters_tlv_accepted{device="XXXX"} 2.7879268e+07
# HELP _lldp_state_enabled JTIMON Metric
# TYPE _lldp_state_enabled untyped
_lldp_state_enabled{device="XXXX"} 1
# HELP _lldp_state_hello_timer JTIMON Metric
# TYPE _lldp_state_hello_timer untyped
_lldp_state_hello_timer{device="XXXX"} 30

Here's our alias.txt:

lldp-frame-in:/lldp/state/counters/frame-in
lldp-frame-out:/lldp/state/counters/frame-out
lldp-hello-timer:/lldp/state/hello-timer
lldp-system-name:/lldp/state/system-name
lldp-enabled:/lldp/state/enabled
@weijiage
Copy link
Collaborator

weijiage commented Oct 5, 2022

Hi Renato,

Please find the error handling of new alias creation in this pull request #125, jtimon won't be silent on why alias is not working.

@renatoornelas
Copy link
Author

renatoornelas commented Oct 21, 2022

Just upgraded our installation to the git version, but got no log on stdout and the alias still not working.

I'm using only this config:
{
"host": "XXXX",
"port": 32767,
"paths": [
{ "path": "/lldp", "freq": 5000 }
],
"alias": "alias.txt"
}

and this alias.txt:
lldp-frame-in-total:/lldp/state/counters/frame-in
lldp-frame-out-total:/lldp/state/counters/frame-out
lldp-hello-timer:/lldp/state/hello-timer
lldp-system-name:/lldp/state/system-name
lldp-enabled:/lldp/state/enabled

I got this on the scrape:

# HELP _lldp_state_counters_frame_in JTIMON Metric
# TYPE _lldp_state_counters_frame_in untyped
_lldp_state_counters_frame_in{device="XXX"} 55769
# HELP _lldp_state_counters_frame_out JTIMON Metric
# TYPE _lldp_state_counters_frame_out untyped
_lldp_state_counters_frame_out{device="XXX"} 60288
# HELP _lldp_state_counters_tlv_accepted JTIMON Metric
# TYPE _lldp_state_counters_tlv_accepted untyped
_lldp_state_counters_tlv_accepted{device="XXX"} 3.4907674e+07
# HELP _lldp_state_enabled JTIMON Metric
# TYPE _lldp_state_enabled untyped
_lldp_state_enabled{device="XXX"} 1

@weijiage
Copy link
Collaborator

May you please try the following config? Setting verbose to true may help.
{ "host": "XXXX", "port": 32767, "paths": [ { "path": "/lldp", "freq": 5000 } ], "alias": "alias.txt", "log": { "verbose": true } }

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

No branches or pull requests

2 participants