apache / apache/pulsar

[Bug] Attempt to send cookie metrics to pushgateway failed

Open
#22,205 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

java: 1.8.0.162
pulsar: 2.10.5
os: centos7.9

### Minimal reproduce step

Here are the implementation details

```
/usr/bin/curl 192.168.0.93:8100/metrics | /usr/bin/curl --data-binary @- http://192.168.0.69:9091/metrics/job/irest_pulsar/instance/192.168.0.93/hostname/ecs-69711187-002.novalocal

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 172k 0 172k 0 0 39.8M 0 --:--:-- --:--:-- --:--:-- 42.0M
pushed metrics are invalid or inconsistent with existing metrics: 6 error(s) occurred:
* collected metric "process_cpu_seconds_total" { label:{name:"hostname" value:"ecs-69711187-002.novalocal"} label:{name:"instance" value:"192.168.0.93"} label:{name:"job" value:"irest_pulsar"} untyped:{value:7041.39}} is not a COUNTER
* collected metric "process_resident_memory_bytes" { label:{name:"hostname" value:"ecs-69711187-002.novalocal"} label:{name:"instance" value:"192.168.0.93"} label:{name:"job" value:"irest_pulsar"} untyped:{value:1.602596864e+09}} is not a GAUGE
* collected metric "process_max_fds" { label:{name:"hostname" value:"ecs-69711187-002.novalocal"} label:{name:"instance" value:"192.168.0.93"} label:{name:"job" value:"irest_pulsar"} untyped:{value:65535}} is not a GAUGE
* collected metric "process_open_fds" { label:{name:"hostname" value:"ecs-69711187-002.novalocal"} label:{name:"instance" value:"192.168.0.93"} label:{name:"job" value:"irest_pulsar"} untyped:{value:625}} is not a GAUGE
* collected metric "process_start_time_seconds" { label:{name:"hostname" value:"ecs-69711187-002.novalocal"} label:{name:"instance" value:"192.168.0.93"} label:{name:"job" value:"irest_pulsar"} untyped:{value:1.7084974661e+09}} is not a GAUGE
* collected metric "process_virtual_memory_bytes" { label:{name:"hostname" value:"ecs-69711187-002.novalocal"} label:{name:"instance" value:"192.168.0.93"} label:{name:"job" value:"irest_pulsar"} untyped:{value:1.095387136e+10}} is not a GAUGE
```

### What did you expect to see?

Indicator successfully pushed to pushgateway

### What did you see instead?

as above

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by running the reported curl pipeline and comparing the /metrics output with Pushgateway's metric-type validation. Trace the Pulsar Prometheus metrics endpoint and the registration of the listed process_* metrics; done means the metrics are accepted by Pushgateway without type errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, prometheus
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.