New to the channel.. Hello :wave::skin-tone-2: Ne...
# _general
j
New to the channel.. Hello 👋🏻 NetScaler Observability question. Trying to setup a Analytics Profile Timeseries to Prometheus/PUSH Metrics data to a Grafana/Prometheus instance. We have a requirement of sending the data to a specific URL&Path. Have tried setting the analyticsEndpointUrl in the analytics profile but it is only sending event data not metric data. Have also tried to rewrite the default path it is sending to but also not working. Anyone done anything similar?
j
As far as I know, NetScaler does not support PushGateway. You have to use another host to pull data out of the NetScaler, that host can then be used to push data to your desired PushGateway.
j
@Jan Tytgat thanks for the reply. Per the documentation and working with Citrix the analytics profile and Prometheus support PUSH or PULL. If you see example 2 in the docs they use PUSH as an option: set analytics profile ns_analytics_time_series_profile -collectors metrics_service1 -type timeseries -metrics Enabled metricsExportFrequency 90 -outputMode prometheus --serveMode PUSH This seems to work but there is no way to set the remote-write option even with the EndpointURL set. I have the question in to Citrix but was curious if anyone dealt with or resolved this issue. https://docs.netscaler.com/en-us/citrix-adc/current-release/observability/metrics#configure-metrics
j
At least in 14.1 you have the option to set the URL, see image. See the documentation on the CLI https://developer-docs.netscaler.com/en-us/adc-command-reference-int/current-release/analytics/analytics-profile#add-analytics-profile
To be honest, I'm not sure if I'd like to use PUSH for this, the sole benefit being that you don't have to run a separate host to pull the metrics file off the system.
I have to read better, you said you tried that... Did you enable the checkbox for "metrics"?
j
Yes I saw that as well and tried it but it only sends Events to the AnalyticsEndpointURL not Metric data if Events is selected... Totally skips metric data and sends to the default path. Looks like it is not supported by Citrix at this point. I am still trying to see if they have an equivalent of remote-write settings I can use. And yes Metrics is selected.
j
Might I inquire why you need PUSH? Don't you have a host nearby to pull them off, and then send them via push?