Skip to content

Prometheus exporter /metrics endpoint does not produce correct output  #366

@nikitabugrovsky

Description

@nikitabugrovsky

Describe the bug

The prometheus exporter /metrics endpoint does not produce correct output for

#TYPE pgagroal_query_count count

That "count" at the end is invalid. It has to be "counter".
Prometheus and the signalfx cannot parse that correctly.

Offending lines are:

data = pgagroal_append(data, "#TYPE pgagroal_query_count count\n");

data = pgagroal_append(data, "#TYPE pgagroal_tx_count count\n");

Version

pgagroal 1.5.1

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions