Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] <TextParser parse promethues data error> #2863

Open
1 task done
Ceilzcx opened this issue Dec 9, 2024 · 1 comment
Open
1 task done

[BUG] <TextParser parse promethues data error> #2863

Ceilzcx opened this issue Dec 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Ceilzcx
Copy link
Contributor

Ceilzcx commented Dec 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

e2fc3b0cd09224e10a63b6106f38ae9
when parser value like 6.6917e-05, double parse while throw exception
image

  ```
          # HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
                # TYPE go_gc_duration_seconds summary 
                go_gc_duration_seconds {  quantile="0"} 2.0209e-05 1733750089
                go_gc_duration_seconds{  quantile = "0.25"  }   6.6917e-05
                go_gc_duration_seconds{quantile="0.5"} -Inf
                go_gc_duration_seconds{ quantile = "0.75"} +Inf
                go_gc_duration_seconds{quantile="1"} NaN
                go_gc_duration_seconds_sum 0.001134793 321314
                go_gc_duration_seconds_count 5 43
                # HELP go_goroutines Number of goroutines that currently exist.
                # TYPE go_goroutines gauge
                go_goroutines 32
                # HELP go_info Information about the Go environment.
                # TYPE go_info gauge
                go_info{version="go1.21.6"} 1
                # HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
                # TYPE go_memstats_alloc_bytes gauge
                go_memstats_alloc_bytes 1.5716224e+07
                # HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
                # TYPE go_memstats_alloc_bytes_total counter
                go_memstats_alloc_bytes_total 2.0707544e+07
                # HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
                # TYPE go_memstats_buck_hash_sys_bytes gauge
                go_memstats_buck_hash_sys_bytes 1.457881e+06
                # HELP go_memstats_frees_total Total number of frees.
                # TYPE go_memstats_frees_total counter
                go_memstats_frees_total 50438
                # HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
                # TYPE go_memstats_gc_sys_bytes gauge
                go_memstats_gc_sys_bytes 4.614808e+06

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Environment

```markdown
HertzBeat version(s):

Debug logs

No response

Anything else?

No response

@Ceilzcx
Copy link
Contributor Author

Ceilzcx commented Dec 9, 2024

their are two prometheus parse implement, maybe can unify into a common class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant