We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm trying to use skipMetrics to skip the label success=false from apollo_query_duration metrics. I tried as bellow:
success=false
apollo_query_duration
import { createPrometheusExporterPlugin, MetricsNames} from '@bmatei/apollo-prometheus-exporter' [...] const prometheusExporterPlugin = createPrometheusExporterPlugin({ durationHistogramsBuckets: [0.5, 2], app, skipMetrics: { [MetricsNames.QUERY_DURATION]: (labels) => {labels.success === 'false'} }, })
Should I import something else? What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I know this is really old but do you need to do either
[MetricsNames.QUERY_DURATION]: (labels) => { return labels.success === 'false'; }
or
[MetricsNames.QUERY_DURATION]: (labels) => labels.success === 'false'
I'm just looking at this type of thing myself at the moment
Sorry, something went wrong.
No branches or pull requests
Hi, I'm trying to use skipMetrics to skip the label
success=false
fromapollo_query_duration
metrics. I tried as bellow:Should I import something else? What am I doing wrong?
The text was updated successfully, but these errors were encountered: