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

dynamically disabling prometheus exporter to reduce log messages #346

Open
ewolfman opened this issue Jun 29, 2022 · 0 comments
Open

dynamically disabling prometheus exporter to reduce log messages #346

ewolfman opened this issue Jun 29, 2022 · 0 comments

Comments

@ewolfman
Copy link

ewolfman commented Jun 29, 2022

Hi,

I am trying to reduce the amount of Prometheus log messages while setting the Elasticsearch cluster to DEBUG.
The following does not work as I get tons of DEBUG messages.

PUT /_cluster/settings
{
  "transient": {
    "logger._root": "DEBUG", 
    "logger.org.elasticsearch.rest.prometheus.RestPrometheusMetricsAction": "INFO"
  }
}

Therefore I tried to temporarily disable prometheus as stated here: https://github.com/vvanholl/elasticsearch-prometheus-exporter#install like so:

PUT /_cluster/settings
{
  "transient": {
    "prometheus.cluster.settings": false,
    "prometheus.indices": false
  }
}

But I still see log messages like so:

{"type": "server", "timestamp": "2022-06-29T15:52:51,969Z", "level": "DEBUG", "component": "o.e.r.p.RestPrometheusMetricsAction", "cluster.name": "###", "node.name": "###", "message": "Registered new cluster gauge index_querycache_cache_count", "cluster.uuid": "####", "node.id": "###" }

How can this be achieved?

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

No branches or pull requests

1 participant