eiiches / scriptable-jmx-exporter

A javaagent for scraping and exposing MBeans to Prometheus
MIT License
7 stars 2 forks source link

Add option to expose all string attributes as info metrics. #17

Open eiiches opened 4 years ago

eiiches commented 4 years ago

It might be useful as long as it doesn't cause too much load on Prometheus.

# TODO: come up with a better API
declarations:
   public static final V1.Config config = V1.config()
       .stringAsInfoMetrics(true)
       .snakeCase();

rules:
- transform: |
    V1.transform(..., config);
eiiches commented 4 years ago

This must be done before final 1.0.0 release, as it probably requires incompatible API changes.