netscaler-observability-exporter

by NetScaler

Helm chartv1.10.1App 1.10.001Verified publisher

A Helm chart for NetScaler Observability Exporter

About this chart

NetScaler Observability Exporter

NetScaler Observability Exporter is a container which collects metrics and transactions from NetScalers and transforms them to suitable formats (such as JSON, AVRO) for supported endpoints. You can export the data collected by NetScaler Observability Exporter to the desired endpoint for analysis and get valuable insights at a microservices level for applications proxied by NetScalers.

NetScaler Observability Exporter supports collecting transactions and streaming them to Elasticsearch, Kafka or Splunk.

NetScaler Observability Exporter implements distributed tracing for NetScaler and currently supports Zipkin as the distributed tracer.

NetScaler Observability Exporter supports collecting timeseries data (metrics) from NetScaler instances and exports them to Prometheus.

We can configure NetScaler Observability Exporter helm chart to export transactional, tracing and timeseries (metrics) data to their corresponding endpoints.

TL; DR;

   helm repo add netscaler https://netscaler.github.io/netscaler-helm-charts/

   For streaming transactions to Kafka, timeseries to Prometheus and tracing to zipkin:
     helm install nsoe netscaler/netscaler-observability-exporter --set kafka.enabled=true --set kafka.broker="X.X.X.X\,Y.Y.Y.Y" --set kafka.topic=HTTP --set kafka.dataFormat=AVRO --set timeseries.enabled=true --set ns_tracing.enabled=true --set ns_tracing.server="zipkin:9411/api/v1/spans"

   For streaming transactions to Elasticsearch, timeseries to Prometheus and tracing to zipkin:
     helm install nsoe netscaler/netscaler-observability-exporter --set elasticsearch.enabled=true --set elasticsearch.server=elasticsearch:9200 --set timeseries.enabled=true --set ns_tracing.enabled=true --set ns_tracing.server="zipkin:9411/api/v1/spans"

   For streaming transactions to Splunk, timeseries to Prometheus and tracing to zipkin:
     helm install nsoe netscaler/netscaler-observability-exporter --set splunk.enabled=true --set splunk.server="splunkServer:port" --set splunk.authtoken="authtoken" --set timeseries.enabled=true --set ns_tracing.enabled=true --set ns_tracing.server="zipkin:9411/api/v1/spans"

   For streaming timeseries data to Prometheus:
     helm install nsoe netscaler/netscaler-observability-exporter --set timeseries.enabled=true

   For streaming tracing data to Zipkin:
     helm install nsoe netscaler/netscaler-observability-exporter --set ns_tracing.enabled=true --set ns_tracing.server="zipkin:9411/api/v1/spans"

   For streaming transactions, auditlogs and events to Kafka in JSON format, and metrics to Prometheus in Prometheus line format:
     helm install nsoe netscaler/netscaler-observability-exporter --set kafka.enabled=true --set kafka.broker="X.X.X.X\,Y.Y.Y.Y" --set kafka.topic=HTTP --set kafka.dataFormat=JSON --set timeseries.enabled=true --set kafka.events=yes --set kafka.auditlogs=yes

Introduction

This Helm chart deploys NetScaler Observability Exporter in the Kubernetes cluster using Helm package manager.

Prerequisites

  • The Kubernetes version 1.6 or later if using Kubernetes environment.

  • The Helm version is 3.x or later. You can follow instruction given here to install Helm in Kubernetes environment.

    • To enable Tracing, set ns_tracing.enabled to true and ns_tracing.server to the tracer endpoint like zipkin.default.cluster.svc.local:9411/api/v1/spans. Default value for Zipkin server is zipkin:9411/api/v1/spans.

    • To enable Elasticsearch endpoint for transactions, set elasticsearch.enabled to true and server to the elasticsearch endpoint like elasticsearch.default.svc.cluster.local:9200. Default value for Elasticsearch endpoint is elasticsearch:9200.

    • To enable Kafka endpoint for transactions, set kafka.enabled to true, kafka.broker to kafka broker IPs, kafka.topic, and kafka.dataFormat . Default value for kafka topic is HTTP. Default value for kafka.dataFormat is AVRO. To further enable auditlogs and events, set kafka.events to yes and kafka.auditlogs to yes (note that timeseries.enabled should be true for this to work, and currently kafka.dataFormat should be JSON for this to work).

    • To enable Timeseries data upload in prometheus format, set timeseries.enabled to true. Currently Prometheus is the only timeseries endpoint supported.

    • To enable Splunk endpoint for transactions, set splunk.enabled to true, splunk.server to Splunk server with port, splunk.authtoken to the token and splunk.indexprefix to the index prefix to upload the transactions. Default value for splunk.indexprefix is adc_nsoe .

Installing the Chart

Add the NetScaler Observability Exporter helm chart repository using command:

   helm repo add netscaler https://netscaler.github.io/netscaler-helm-charts/

For Kubernetes:

1. NetScaler Observability Exporter

To install the chart with the release name, my-release, use the following command, after setting the required endpoint in values.yaml:

    helm install my-release netscaler/netscaler-observability-exporter

Configuration

The following table lists the mandatory and optional parameters that you can configure during installation:

ParametersMandatory or OptionalDefault valueDescription
license.acceptMandatorynoSet yes to accept the NetScaler end user license agreement.
imageRegistryMandatoryquay.ioThe NSOE image registry
imageRepositoryMandatorynetscaler/netscaler-observability-exporterThe NSOE image repository
imageTagMandatory1.10.001The NSOE image tag
pullPolicyMandatoryIfNotPresentThe NSOE image pull policy.
nodePortRequiredOptionalfalseSet true to create a nodeport NSOE service.
headlessOptionalfalseSet true to create Headless service.
transaction.nodePortOptionalN/ASpecify the port used to expose NSOE service outside cluster for transaction endpoint.
ns_tracing.enabledOptionalfalseSet true to enable sending trace data to tracing server.
ns_tracing.serverOptionalzipkin:9411/api/v1/spansThe tracing server api endpoint.
elasticsearch.enabledOptionalfalseSet true to enable sending transaction data to elasticsearch server.
elasticsearch.serverOptionalelasticsearch:9200The Elasticsearch server api endpoint.
elasticsearch.indexprefixOptionaladc_nsoeThe elasticsearch index prefix.
splunk.enabledOptionalfalseSet true to enable sending transaction data to splunk server.
splunk.authtokenOptionalSet the authtoken for splunk.
splunk.indexprefixOptionaladc_nsoeThe splunk index prefix.
kafka.enabledOptionalfalseSet true to enable sending transaction data to kafka server.
kafka.brokerOptionalThe kafka broker IP details.
kafka.topicOptionalHTTPThe kafka topic details to upload data.
kafka.dataFormatOptionalAVROThe format of the data exported to Kafka -- can be either JSON or AVRO, and defaults to AVRO
kafka.eventsOptionalnoWhether events should be exported to Kafka (JSON) -- can be either yes or no and defaults to no
kafka.auditlogsOptionalnoWhether auditlogs should be exported to Kafka (JSON) -- can be either yes or no and defaults to no
timeseries.enabledOptionalfalseSet true to enable sending timeseries data to Prometheus or Kafka.
timeseries.nodePortOptionalN/ASpecify the port used to expose NSOE service outside cluster for timeseries endpoint.
json_trans_rate_limiting.enabledOptionalfalseSet true to enable rate-limiting of transactions for JSON-based endpoints: Splunk, ElasticSearch and Zipkin.
json_trans_rate_limiting.limitOptional100Specify the rate-limit: 100 means approximately 800 TPS.
json_trans_rate_limiting.queuelimitOptional1000The amount of transactional data that can pile up, before NSOE starts shedding them. For Zipkin, 1000 is approximately 64 MB of data; For Splunk and ElasticSearch, this is approximately 32 MB of data.
json_trans_rate_limiting.windowOptional5The recalculation window in seconds-the lower the window size ( must be greater than 0), the more effective will be the rate-limiting but it will have CPU overhead
podAnnotationsOptionalN/AMap of annotations to add to the pods.
resourcesOptionalN/ACPU/Memory resource requests/limits for NetScaler observability exporter container.
tolerationsOptionalN/ASpecify the tolerations for the NSOE deployment.
affinityOptionalN/AAffinity labels for pod assignment.
nsoeLogLevelOptionalINFOLogging severity for NSOE can be one of- DEBUG, INFO, ERROR, FATAL or NONE.
nameOverrideOptionalN/AString to partially override deployment fullname template with a string (will prepend the release name)
fullNameOverrideOptionalN/AString to fully override deployment fullname template with a string

Alternatively, you can define a YAML file with the values for the parameters and pass the values while installing the chart.

For example:

   helm install my-release netscaler/netscaler-observability-exporter -f values.yaml

Note:

  1. It might be required to expose NSOE using nodePort. In such case, nodePort service can also be created additionally using the set option 'nodePortRequired=true'
  2. It might be required to stream only transactional data, without streaming timeseries or tracing data:
    • For disabling timeseries, set the option 'timeseries.enabled=false'
    • For disabling tracing, set the option 'ns_tracing.enabled=false' and do not set 'ns_tracing.server'

Tip:

The values.yaml contains the default values of the parameters.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

   helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Related documentation

Deploy netscaler-observability-exporter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has netscaler-observability-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnetscaler-observability-exporter is pinned at v1.10.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply