Comments (4)
Hello experts,
The above is the error output of docker run CLI. Could you tell me what is the cause of this issue? Thanks!
from prometheus_aci_exporter.
I have modified the code to provide a bit more context about this issue. Please try running the newest version of the container and posting the new error message here.
from prometheus_aci_exporter.
@RavuAlHemio Many thanks for your reply!
I tried to run the latest version, but there are new issue the below.
Exception happened during processing of request from ('172.17.0.1', 58006)
Traceback (most recent call last):
File "./prometheus_aci_exporter.py", line 335, in collect_fabric
labels.update(updated_labels)
ValueError: dictionary update sequence element #0 has length 1; 2 is required
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/usr/local/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/lib/python3.8/socketserver.py", line 720, in init
self.handle()
File "/usr/local/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/local/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "./prometheus_aci_exporter.py", line 519, in do_GET
generated_lines = [
File "./prometheus_aci_exporter.py", line 519, in
generated_lines = [
File "./prometheus_aci_exporter.py", line 246, in collect
yield from self.collect_fabric(fabric_name, fabric, controller, common_queries)
File "./prometheus_aci_exporter.py", line 337, in collect_fabric
raise ValueError(f"failed to update labels in query {query_name!r} with {updated_labels!r}: {ex}")
ValueError: failed to update labels in query 'interface_rx_stats' with 'topology/pod-1/node-201/sys/ch/supslot-1/sup/cpuport-1/CDeqptIngrBytes5min': dictionary update sequence element #0 has length 1; 2 is required
from prometheus_aci_exporter.
I think I've understood the issue: the regex that should extract the labels from the DN does not work with this DN format, so instead of producing a dictionary (of labels and their values), the function produces a string (the DN itself).
A quick fix in aci.yml
would be adding regex_must_match: true
right under the regex: [...]
line under the only entry in common_queries
-> interface_rx_stats
-> labels
(that's line 113 of the current revision of examples/aci.yml). You might also have to do the same for interface_tx_stats
.
from prometheus_aci_exporter.
Related Issues (6)
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 prometheus_aci_exporter.