GitHub user tomorrowshipyltm edited a discussion: Simplify the monitor template

Hello, community

**Question**
There is a lot of duplication in the monitoring templates. For example, in the 
app-centos.yml file, different metrics only differ in the script and parseType, 
while other parameters like host, port, and username are repeated. This leads 
to longer YAML files.

<img width="330" alt="截屏2024-07-03 15 00 39" 
src="https://github.com/apache/hertzbeat/assets/61336903/a3f37ffc-1335-408c-b8e5-0a1484b4e9ab";>

**Suggestion**
Consider extracting the repetitive parameters into a common protocolCommon 
section.
```

protocolCommon: sshCommon
  host: 
  port:
protocol: ssh
ssh:
  script : uname
  parseType: multiRow
```



GitHub link: https://github.com/apache/hertzbeat/discussions/2179

----
This is an automatically sent email for dev@hertzbeat.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@hertzbeat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hertzbeat.apache.org
For additional commands, e-mail: dev-h...@hertzbeat.apache.org

Reply via email to