diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 982d5e8..51bfeef 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,16 +4,11 @@
-
-
-
-
+
+
-
-
-
-
+
@@ -313,19 +308,25 @@
- {
- "keyToString": {
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "git-widget-placeholder": "master",
- "last_opened_file_path": "F:/Postgraduate/work_project/data-collection-terminal/management-panel",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -376,7 +377,7 @@
-
+
@@ -498,7 +499,23 @@
1724826565563
-
+
+
+ 1725329462713
+
+
+
+ 1725329462713
+
+
+
+ 1725329493842
+
+
+
+ 1725329493842
+
+
@@ -536,6 +553,7 @@
-
+
+
\ No newline at end of file
diff --git a/confd/conf.d/opcua.toml b/confd/conf.d/opcua.toml
index 386c780..cebeb23 100644
--- a/confd/conf.d/opcua.toml
+++ b/confd/conf.d/opcua.toml
@@ -3,6 +3,7 @@ src = "opcua.tmpl"
dest = "/data/opcua/opcua.yaml"
keys = [
"/datasource/",
+ "/exporter/"
"/metrics/"
]
#reload_cmd = "pkill -f opcua-exporter && cd /home/lamonki/opcua-expoter/build && ./manage_opcua_exporter.sh | tee /dev/tty"
diff --git a/confd/templates/opcua.tmpl b/confd/templates/opcua.tmpl
index c915978..a44c48e 100644
--- a/confd/templates/opcua.tmpl
+++ b/confd/templates/opcua.tmpl
@@ -16,11 +16,16 @@ datasource:
cache_update: {{ getv "/datasource/cache_update" }}
cache_timeout: {{ getv "/datasource/cache_timeout" }}
+exporter:
+ exporter_bind: {{ getv "/exporter/exporter_bind" }}
+ exporter_thread: {{ getv "/exporter/exporter_thread" }}
+ exporter_auth: {{ getv "/exporter/exporter_auth" }}
+
metrics:
{{ range $index, $element := ls "/metrics" }}
- - name: "{{ getv (printf "/metrics/%d/name" $index) }}"
+ - name: {{ getv (printf "/metrics/%d/name" $index) }}
identifier_type: {{ getv (printf "/metrics/%d/identifier_type" $index) }}
- nodeid: "{{ getv (printf "/metrics/%d/nodeid" $index) }}"
- help: "{{ getv (printf "/metrics/%d/help" $index) }}"
+ nodeid: {{ getv (printf "/metrics/%d/nodeid" $index) }}
+ help: {{ getv (printf "/metrics/%d/help" $index) }}
{{ end }}
diff --git a/management-panel/app/Filament/Widgets/UpdateConfigWidget.php b/management-panel/app/Filament/Widgets/UpdateConfigWidget.php
index 12caaee..0485408 100644
--- a/management-panel/app/Filament/Widgets/UpdateConfigWidget.php
+++ b/management-panel/app/Filament/Widgets/UpdateConfigWidget.php
@@ -22,7 +22,7 @@ class UpdateConfigWidget extends Widget
// $etcd->deleteByPrefix("datasource");
$settings = DB::table('settings')
- ->where('group', 'datasource')
+// ->where('group', 'datasource')
->get(); // 获取 group 为 datasource 的所有记录
foreach ($settings as $setting) {