glowroot

by NOVUM-RGI

Helm chartv1.0.10App 0.14.0-beta.3

Helm chart for glowroot

About this chart

Helm Chart for Glowroot

This is a kubernetes helm chart for Glowroot. It deploys a pod for glowroot-central and one for cassandra database. The glowroot admin section is fully configurable through the values. Ingress is supported as well.

Content

    1. Prerequisites
    1. Installation
    1. Breaking Changes
    1. Current Limitation
    1. Configuration
    • 5.1. Image
    • 5.2. Service
    • 5.3. Glowroot Cassandra
    • 5.4. Glowroot UI
    • 5.5. Glowroot Admin
    • 5.6. Cassandra
      • 5.6.1. Ingress

1. Prerequisites

  • Kubernetes cluster 1.10+ (should also work on older versions)
  • Helm 2.8.0+

2. Installation

  helm repo add novum-rgi-helm https://novumrgi.github.io/helm/
  helm install glowroot novum-rgi-helm/glowroot

3. Breaking Changes

In 1.0.8 the ingress was changed to support higher api version.

You now have to provide a dictionary defining host, path and pathType

ingress:
  enabled: false
  className: nginx
  annotations: {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"
  hosts:
    - host: glowroot.local.com
      paths:
        - path: /
          pathType: Prefix
  tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local

4. Current Limitation

Since this image needs to configure the admin part via values this chart is based on a little patch for glowroot. Thats we this currently only works with novumrgi/glowroot-central image from dockerhub.

Examples

Role Creation

For users to be assigned to roles we need to create the roles. The role Administrator is always created.

To get more information on the permissions format simply start glowroot with anonymous and create the desired roles in glowroot itself, have a look at the admin.json after creating the roles and copy the desired permissions.

 glowroot:
  admin:
    roles:
      - name: "MyOwnAdmin"
        permissions:
          - admin
          - agent:*:config
          - agent:*:error
          - agent:*:incident
          - agent:*:jvm
          - agent:*:syntheticMonitor
          - agent:*:transaction

User Creation

  glowroot:
    admin:
      users:
        - name: MyAdminUser
          password: admin123
          roles:
            - MyOwnAdmin

5. Configuration

5.1. Image

ParameterDescriptionDefault
image.repositorySet the repo from where to get the glowroot image.novumrgi/glowroot-central
image.tagImage Tag to download0.13.7
image.pullPolicyImage pull policyAlways

5.2. Service

ParameterDescriptionDefault
service.typeKubernetes service typeClusterIP
service.portService port for Glowroot4000
service.agentPortService port for Glowroot-Agent8181

5.3. Glowroot Cassandra

ParameterDescriptionDefault
glowroot.cassandra.symmetricEncryptionKeyDatabase encryption Key, this should be changed when using the chart for security reasonsf8b62a6a4bd37abcc95e2f15d69c7b91

5.4. Glowroot UI

ParameterDescriptionDefault
glowroot.ui.contextPathSet ui context path used for reverse Proxy settings

5.5. Glowroot Admin

ParameterDescriptionDefault
glowroot.admin.anonymousUserAllow anonymous access to glowroottrue
glowroot.admin.general.displayNameSet name for glowroot, this will be displayed on alert mails
glowroot.admin.usersList of username, password and roles assigned to the user. Example in values.yaml[]
glowroot.admin.rolesList of roles to be created, consist of role name and a list of permissions[]
glowroot.admin.web.sessionTimeoutMinSession timeout30
glowroot.admin.web.sesssionCookieNameCookie name for the sessionGLOWROOT_SESSION_ID
glowroot.admin.storage.responseTimeJvmGaugeHours.oneMinAggregatesThe data that is displayed under the transaction response time tab and on the JVM gauge screen is collected continuously by the agents and sent to the central collector (and stored) at 1 minute intervals. This setting defines how long to retain these 1 minute aggregates. (this setting also applies to the 5 second gauge data)48
glowroot.admin.storage.responseTimeJvmGaugeHours.fiveMinAggregatesResponse time and JVM gauge data is rolled up at 5 minute intervals. This setting defines how long to retain these 5 minute aggregates.336
glowroot.admin.storage.responseTimeJvmGaugeHours.thirtyMinAggregatesResponse time and JVM gauge data is rolled up again at 30 minute intervals. This setting defines how long to retain these 30 minute aggregates.720
glowroot.admin.storage.responseTimeJvmGaugeHours.fourHourAggregatesResponse time and JVM gauge data is rolled up again at 4 hour intervals. This setting defines how long to retain these 4 hour aggregates.720
glowroot.admin.storage.queryServiceCallDataHours.oneMinAggregatesThe data that is displayed under the transaction queries and service calls tabs is collected continuously by the agents and sent to the central collector (and stored) at 1 minute intervals. This setting defines how long to retain these 1 minute aggregates.48
glowroot.admin.storage.queryServiceCallDataHours.fiveMinAggregatesQuery and service call data is rolled up at 5 minute intervals. This setting defines how long to retain these 5 minute aggregates.168
glowroot.admin.storage.queryServiceCallDataHours.thirtyMinAggregatesQuery and service call data is rolled up again at 30 minute intervals. This setting defines how long to retain these 30 minute aggregates.720
glowroot.admin.storage.queryServiceCallDataHours.fourHourAggregatesQuery and service call data is rolled up again at 4 hour intervals. This setting defines how long to retain these 4 hour aggregates.720
glowroot.admin.storage.profileDataHours.oneMinAggregatesThe data that is displayed under the transaction continuous profiling tab is collected continuously by the agents and sent to the central collector (and stored) at 1 minute intervals. This setting defines how long to retain these 1 minute aggregates.48
glowroot.admin.storage.profileDataHours.fiveMinAggregatesProfile data is rolled up at 5 minute intervals. This setting defines how long to retain these 5 minute aggregates.168
glowroot.admin.storage.profileDataHours.thirtyMinAggregatesProfile data is rolled up again at 30 minute intervals. This setting defines how long to retain these 30 minute aggregates.720
glowroot.admin.storage.profileDataHours.fourHourAggregatesProfile data is rolled up again at 4 hour intervals. This setting defines how long to retain these 4 hour aggregates.720
glowroot.admin.storage.traceDataHoursThis setting defines how long to retain trace data. This includes individual traces and error message data.336
glowroot.admin.ldap.enabledEnable or disable ldapfalse
glowroot.admin.ldap.connection.hostLDAP server hostname or IP address.
glowroot.admin.ldap.connection.portPort to connect for ldap. Defaults to port 389 for non-SSL, and 636 for SSL.
glowroot.admin.ldap.connection.sslUse SSLfalse
glowroot.admin.ldap.connection.followTraverse ldap tree, might slow down your ldap connectiontrue
glowroot.admin.ldap.connection.bindDNUsername that Glowroot uses to bind and run LDAP queries.
glowroot.admin.ldap.connection.bindPwPassword that Glowroot uses to bind and run LDAP queries.
glowroot.ldap.structure.userBaseDNBase DN for locating users, e.g. ou=Users,dc=example,dc=com
glowroot.ldap.structure.userSearchFilter
This search filter is used to find the user based on the username they enter during login. The placeholder {0} in the filter will be populated with the username. For active directory this filter is likely sAMAccountName={0}
glowroot.ldap.structure.groupBaseDNBase DN for locating groups, e.g. ou=Groups,dc=example,dc=com
glowroot.ldap.structure.groupSearchFilterThis search filter is used to find the groups that a user is a member of. The placeholder {0} in the filter will be populated with the user DN. For active directory this filter is likely member={0}
glowroot.ldap.mappingList of ldapGroupDN to glworootRoles mappings
glowroot.admin.smtp.enabledEnable or disable mailerfalse
glowroot.admin.smtp.hostSMTP server hostname or IP address.
glowroot.admin.smtp.portPort to connecto to smtp server
glowroot.admin.smtp.connectionSecuritySecurity settings for mailer connection [ssl-tls,starttls]
glowroot.admin.smtp.usernameUsername to connect to mailserver
glowroot.admin.smtp.passwordPassword for username to connect to mailserver
glowroot.admin.smtp.fromEmailAddressMail address for alert mails
glowroot.admin.smtp.fromDisplayNameDisplay name for alert mails

5.6. Cassandra

Cassandra database is loaded as a dependency from bitnami The complete cassandra configuration can be found here: https://github.com/bitnami/charts/tree/master/bitnami/cassandra

The following parameters are set by this charts by default

ParameterDescriptionDefault
cassandra.dbUser.userUser to be created for cassandra databasecassandra
cassandra.dbUser.passwordPassword to be created for cassandra databasepassword
cassandra.keyspaceSet keyspace for cassandra database

5.6.1. Ingress

ParameterDescriptionDefault
ingress.enabledenable ingressfalse
ingress.annotationsadd ingress annotations
ingress.hostsadd hosts for ingress as string listglowroot.example.com
ingress.tlsadd ingress tls settings[]

Deploy glowroot with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has glowroot 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 chartglowroot is pinned at v1.0.10 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