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

Error Loading Config #19

Open
soroush-ghorbani opened this issue Jun 15, 2024 · 3 comments
Open

Error Loading Config #19

soroush-ghorbani opened this issue Jun 15, 2024 · 3 comments

Comments

@soroush-ghorbani
Copy link

soroush-ghorbani commented Jun 15, 2024

{"level":"info","ts":1718202478.6061583,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"x.x.x.x"}
{"level":"info","ts":1718202478.6062522,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"y.y.y.y"}
{"level":"info","ts":1718202478.6063843,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"z.z.z.z"}
{"level":"info","ts":1718202478.6063886,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"a.a.a.a"}
{"level":"info","ts":1718202478.6065412,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"b.b.b.b}
{"level":"info","ts":1718202478.606716,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"c.c.c.c"}
{"level":"info","ts":1718202478.6069164,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"d.d.d.d}
{"level":"info","ts":1718202478.6069515,"caller":"rittal-exporter/main.go:52","msg":"Starting loading device config","device":"e.e.e.e"}
{"level":"info","ts":1718202479.0907717,"caller":"rittal-exporter/main.go:61","msg":"Finished scrape","device":"x.x.x.x","duration_seconds":0.483786691}
{"level":"info","ts":1718202479.1817052,"caller":"rittal-exporter/main.go:61","msg":"Finished scrape","device":"y.y.y.y","duration_seconds":0.575304184}
{"level":"info","ts":1718202479.1902893,"caller":"rittal-exporter/main.go:61","msg":"Finished scrape","device":"z.z.z.z","duration_seconds":0.583320213}
{"level":"info","ts":1718202479.2023973,"caller":"rittal-exporter/main.go:61","msg":"Finished scrape","device":"a.a.a.a","duration_seconds":0.596106256}
{"level":"info","ts":1718202479.2607489,"caller":"rittal-exporter/main.go:61","msg":"Finished scrape","device":"b.b.b.b","duration_seconds":0.65404392}
{"level":"info","ts":1718202480.7926743,"caller":"rittal-exporter/main.go:61","msg":"Finished scrape","device":"c.c.c.c","duration_seconds":2.186263958}
{"level":"error","ts":1718202508.6139517,"caller":"rittal-exporter/main.go:56","msg":"Error loading config","device":"d.d.d.d","error":"request timeout (after 0 retries)","stacktrace":"main.main.func1\n\t/root/rittal-exporter/main.go:56"}
{"level":"error","ts":1718202508.6139257,"caller":"rittal-exporter/main.go:56","msg":"Error loading config","device":"e.e.e.e","error":"request timeout (after 0 retries)","stacktrace":"main.main.func1\n\t/root/rittal-exporter/main.go:56"}
{"level":"info","ts":1718202508.6140208,"caller":"rittal-exporter/main.go:71","msg":"Ready for processing"}

How can I run exporter in debugging mode?
Is any option available that exporter retry to get information about failed target?
How can I change timeout and retry in configuration?

@fritterhoff
Copy link
Member

Hi,

there is no debug mode right now.

What device (type) do you try to scrape? The timeout is configured here:

snmp.Timeout = 30 * time.Second

That timeout is per request. Since I iterate over serval different OIDs I would guess that at least one OID does not respond as expected. The current code is pretty specific for our setup and could maybe need some adjustments for other setups.

@soroush-ghorbani
Copy link
Author

Hi and thank you for reply.
All Devices are Rittal CMCIII(PU/HUM) and snmp scrape & snmpwak work well for all. All devices use similar OID, MIB.
All devices are same.

@fritterhoff
Copy link
Member

So d.d.d.d is also the same type like one of the others or are that e.g. the humidity sensors?

Since we don't use the humidity sensors prop. these cause some strange errors or provide some unexpected values...

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