You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I send custom metrics using
metric_set.counter(name=task_metrics_name, reset_on_collect=False, labels=labels).inc(value), the metric is on the elastic side but from the dictionary with the fake data:
{'company': 'brightwoodlp', 'scan_frequency': 'Monthly'}
I get this:
we are getting just labels.labels and the unparsed dictionary, as I read and know it should be indexed to allow search and more.
To Reproduce
Steps to reproduce the behavior:
I use elastic-apm==6.19.0, python 3.8.10 configuration code:
def config_elastic_setup_metrics(self, SERVICE_NAME, ENV, ELASTIC_AUTH_TOKEN, METRIC_SET_SUBCLASS: MetricSet,
ELASTICSEARCH_ENDPOINT=MetricsConsts.ELASTICSEARCH_ENDPOINT):
self.elastic_apm_client = elasticapm.get_client() or elasticapm.Client(
# Set the server URL
service_name=SERVICE_NAME,
server_url=ELASTICSEARCH_ENDPOINT,
# Set authentication credentials (if needed)
secret_token=ELASTIC_AUTH_TOKEN,
environment=ENV,
# Other configuration options...
)
metric_set = self.elastic_apm_client.metrics.register(METRIC_SET_SUBCLASS)
self.metric_set = metric_set
return metric_set
then I call: self.metric_set.counter(name=task_metrics_name, reset_on_collect=False, labels=labels).inc(value)
then I got the APM and searched for the value of task_metrics_name, we don't have any logs about errors but the metric doesn't as we expected
Expected behavior
I expect to get the field names and values:
label.company: "brightwoodlp"
label.scan_frequency: "Monthly"
in exsit format it's more like metadata, unsearchable and unindexed.
Thank you, Naor.
The text was updated successfully, but these errors were encountered:
Describe the bug
I send custom metrics using
metric_set.counter(name=task_metrics_name, reset_on_collect=False, labels=labels).inc(value), the metric is on the elastic side but from the dictionary with the fake data:
{'company': 'brightwoodlp', 'scan_frequency': 'Monthly'}
I get this:
we are getting just labels.labels and the unparsed dictionary, as I read and know it should be indexed to allow search and more.
To Reproduce
Steps to reproduce the behavior:
then I call:
self.metric_set.counter(name=task_metrics_name, reset_on_collect=False, labels=labels).inc(value)
then I got the APM and searched for the value of task_metrics_name, we don't have any logs about errors but the metric doesn't as we expected
Expected behavior
I expect to get the field names and values:
label.company: "brightwoodlp"
label.scan_frequency: "Monthly"
in exsit format it's more like metadata, unsearchable and unindexed.
Thank you, Naor.
The text was updated successfully, but these errors were encountered: