Skip to content

add getRegisterType / getRegisterDescription#4

Open
vetinari wants to merge 2 commits intobohdan-s:mainfrom
vetinari:register-type
Open

add getRegisterType / getRegisterDescription#4
vetinari wants to merge 2 commits intobohdan-s:mainfrom
vetinari:register-type

Conversation

@vetinari
Copy link
Copy Markdown

This will later be used in another PR to sungather to fix the prometheus metrics:

  • "# TYPE metric_name $type" lines are required
  • "# HELP $description" lines are optional

This will later be used in another PR to sungather to fix the prometheus
metrics:

- "# TYPE metric_name $type" lines are required
- "# HELP $description" lines are optional
vetinari added a commit to vetinari/SunGather that referenced this pull request Nov 10, 2023
some values (i.e. non numerical) must not be in the produced metrics.

All metrics may have an optional `# HELP $description` line and
should have a `# TYPE $metric_name $type` line.

`address` and `unit` tags have been removed as they give no information
you cannot get from the "HELP" lines. They have been replaced with
`model` and `serial` tags to allow multiple inverters in the same
prometheus instance.

Other fixes:
* add `charset=utf-8` to webserver Content-Type headers.
* add `SH5.0RT-V112` that registers as 0xE0C
* add description and type to registers-sungrow.yaml

depends on bohdan-s/SungrowClient#4
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

Successfully merging this pull request may close these issues.

1 participant