Skip to content
New issue

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

Maps EEC/StatsD-related annotations to the EEC and data sources runtime properties #582

Merged
merged 5 commits into from
Feb 22, 2022

Conversation

toszr
Copy link
Contributor

@toszr toszr commented Feb 16, 2022

Extension Controller and data sources (like StatsD) can be configured in OneAgent/ActiveGate bare metal deployments using runtime properties (a.k.a. debug flags). In a bare metal AG setup, the interface is a json file stored at /var/lib/dynatrace/remotepluginmodule/agent/conf/runtime/runtimeConfiguration.

This changeset converts EEC/StatsD debug flags defined as DynaKube annotations with prefix alpha.operator.dynatrace.com/extensions. into valid runtime properties mounted into EEC container via a config map.

Example:

    "alpha.operator.dynatrace.com/extensions.debugExtensionDSstatsdlogoutboundminttraffic": "true"

is turned into:

apiVersion: v1
kind: ConfigMap
metadata:
  name: eec-config
  namespace: dynatrace
data:
  runtimeConfiguration: |
    {
      "revision": 1,
      "booleanMap": {
        "debugExtensionDSstatsdlogoutboundminttraffic": true
      },
      "stringMap": {},
      "longMap": {}
    }

@toszr toszr self-assigned this Feb 16, 2022
@toszr toszr added the activegate Changes related to Activegate label Feb 16, 2022
@toszr toszr requested review from mjgrzybek, aorcholski and a team February 16, 2022 11:55
@toszr toszr force-pushed the feature/statsd-ingest--runtime-props-in-dynakube branch from 171b807 to 3a124d1 Compare February 18, 2022 14:57
@toszr toszr requested a review from 0sewa0 February 18, 2022 15:01
@toszr toszr enabled auto-merge (squash) February 18, 2022 15:03
@chrismuellner
Copy link
Collaborator

Annotations starting with internal.operator... should be managed by the operator.
If these annotations are defined by the user, we need to find a different name.

@toszr
Copy link
Contributor Author

toszr commented Feb 21, 2022

OK, changed the prefix to alpha.operator.dynatrace.com/extensions..

0sewa0
0sewa0 previously approved these changes Feb 22, 2022
@toszr toszr force-pushed the feature/statsd-ingest--runtime-props-in-dynakube branch from 23b2a66 to 7c5bdb1 Compare February 22, 2022 13:32
@toszr toszr requested a review from 0sewa0 February 22, 2022 13:35
@toszr toszr dismissed chrismuellner’s stale review February 22, 2022 14:19

Implemented changes from review

@toszr toszr merged commit 23435b4 into master Feb 22, 2022
@toszr toszr deleted the feature/statsd-ingest--runtime-props-in-dynakube branch February 23, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
activegate Changes related to Activegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants