Fix Prometheus incorrect metric name (#502)

* Fix Prometheus incorrect metric name

* Remove unnecessary changes
This commit is contained in:
cybermaggedon 2025-09-06 18:37:01 +01:00 committed by GitHub
parent 415208e3e7
commit a92050c411
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View file

@ -27,13 +27,13 @@ class Processor(FlowProcessor):
id = params.get("id")
concurrency = params.get("concurrency", 1)
template_id = params.get("template-id", default_template_id)
config_key = params.get("config-type", default_config_type)
template_id = params.get("template_id", default_template_id)
config_key = params.get("config_type", default_config_type)
super().__init__(**params | {
"id": id,
"template-id": template_id,
"config-type": config_key,
"template_id": template_id,
"config_type": config_key,
"concurrency": concurrency,
})

View file

@ -53,7 +53,7 @@ class Processor(FlowProcessor):
super(Processor, self).__init__(
**params | {
"id": id,
"config-type": self.config_key,
"config_type": self.config_key,
"concurrency": concurrency,
}
)

View file

@ -37,7 +37,7 @@ class Processor(FlowProcessor):
super(Processor, self).__init__(
**params | {
"id": id,
"config-type": self.config_key,
"config_type": self.config_key,
"concurrency": concurrency,
}
)

View file

@ -91,7 +91,7 @@ class Processor(FlowProcessor):
super(Processor, self).__init__(
**params | {
"id": id,
"config-type": self.config_key,
"config_type": self.config_key,
}
)

View file

@ -36,7 +36,7 @@ class Processor(FlowProcessor):
super(Processor, self).__init__(
**params | {
"id": id,
"config-type": self.config_key,
"config_type": self.config_key,
}
)

View file

@ -50,7 +50,7 @@ class Processor(FlowProcessor):
super(Processor, self).__init__(
**params | {
"id": id,
"config-type": self.config_key,
"config_type": self.config_key,
}
)