Skip to content

Commit

Permalink
Push EF2.0 version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
d1-steps authored and d1-steps committed Nov 29, 2024
1 parent 6d72fd6 commit 8235f00
Show file tree
Hide file tree
Showing 20 changed files with 6,030 additions and 78 deletions.
5 changes: 2 additions & 3 deletions documentation/docs/Guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sidebar_position: 3

2. Once the certificate has been uploaded, download the extension bundle zip from [here](https://github.com/Dynatrace/insightify/blob/main/releases/EF2.0/1.0/bundle.zip)
2. Download to get the extension ZIP file. **Don't rename the file.**
5. Upload the ZIP file on Dynatrace.
5. Upload the ZIP file on Dynatrace as outlined [here](https://docs.dynatrace.com/docs/shortlink/extension-lifecycle#upload-custom-extension).
6. Enter the following endpoint information for pulling data:

- **Configuration name:** A label to identify this connection. It is used for identification purposes.
Expand All @@ -36,7 +36,6 @@ sidebar_position: 3
- **Ingest Logs (API v2) (Optional):** Allows pushing the retrieved problem data as logs.



1. Within Dynatrace, navigate to **Settings >> Monitored technologies >> Custom extensions** tab
![upload-extension](Upload_health_extension.jpg)

Expand All @@ -52,7 +51,7 @@ sidebar_position: 3
- **Capture and report problem data per management:** Flag to pull problem data and report it per management zone in a dashboard named `Insightify Incident Report`. The default value is **Yes**.
- **Push problem details as logs:** Configure to push problem details as logs. If configured, the endpoint will push problem details via the `/ingest/logs` API. By default, this feature is disabled.
- **Duration (in mins) when a problem is treated as an incident:** The time before a problem is considered an incident. Default value is 30 mins.
- **Capture and Generate Problem Report Data:** Select the time period for generating problem data from options like every 1 day, 30 days, 60 days, 180 days, or annually. The frequency affects data consumption; more frequent pulls provide better insights, while less frequent pulls reduce data points and consumption.
- **Capture and Generate Problem Report Data:** Select the time period for generating problem data from options like every 1 day, 7 days, 14 days, 30 days, or annually. The frequency affects data consumption; more frequent pulls provide better insights, while less frequent pulls reduce data points and consumption.
- **Management Zone Name:** Configure the management zone from which you want to pull data. By default, it pulls data from all management zones.

3. Once configured, the extension will start successfully. It should display an "OK" status.
Expand Down
Binary file removed releases/EF2.0/1.0/bundle.zip
Binary file not shown.
56 changes: 28 additions & 28 deletions releases/EF2.0/1.0/ca.pem
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIFEDCCAvigAwIBAgIUJTx1k1yFsXKMIdubTOfO+5CU2uowDQYJKoZIhvcNAQEL
BQAwIzEhMB8GA1UEAxMYRXh0ZW5zaW9uIERldmVsb3BlciBSb290MB4XDTI0MDky
NTE0MzQxMVoXDTI3MDkyNjE0MzQxMVowIzEhMB8GA1UEAxMYRXh0ZW5zaW9uIERl
dmVsb3BlciBSb290MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvrNX
h7b89xET+lWIt++NUc1P6Syf088JIPLJTrd81Fnz2eXFMqKLZCPouPd4gVeC7cwc
rdmkYYM1qyKFRSoULf/7fZShgRTDFLcW1quHwbVfo/f/Z3trFjlLfFOWZEydwBxe
PcEOA0KP7BefS55ip/wQ8gutuhb0/dA9i+6f1GQh8WIN7iBfPJBtuW2JVn0HL/u+
IJyDkYGn2N6K+pt2TpvT5OX3Y9xZ7tAaKJYJ2XyhlKWNX2CtjjRCgqhdDBEmwt3t
8JhCKT5uFNQ33CkM6CoTp6MUPPgghbMCdAkztTVUBoPT0srAkZdKU6CH5Aq2C+0v
EGbCr2K1s5/jEw3UBtzWouswL6jm2VcVxVF+4m6pnjpOOmhryGvDOYb8xlK+EPJz
0mjiyepHiBil0jhhc3BAPeTMqv5k7qcBuqUtD2QisZF957xiZoDdOAgLg8SekkvB
qIzpHVm9iQzNFyykM8FtwAz0x5qgnljm0OBMYNS4HUeQVdC1gKJQRL5IfgRKKMzK
O2JyNlF9kJC6l25E9ZIrvNiLMJ4brcn7hG1riyjRVoso792qE2rce4J7HY1tA7vJ
gwgXioBAt04Vk2ABbQYgzio5T+GJbsgKZsVbdc2fnTD7GW78OyXyNzH9jWiV1/Xf
xXlf4gLAph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UejwUvY0dW1jk0amabsFd4BMXP35jL1MXPZO4lMP1gfGX
r7vo69pI6o2ocqRFz6jrinlmrk4L+I0Ge7IipDJtIi1NGTV/cTQG/1PRntzgg8/g
gxZ/kAyyrNPh8KdGp+To1b/9mzFItP+ly+5RbpRnH5KHYQT5/vhu4/Z3nfeIpYoZ
ZiCyozPGkLjWQ2tvbbjM0H19Y+qEg9zzDxBbhAm2B8WHTba5rij8hA897YkVgoYk
TnEd+PAAniBl0pKhQIsvx13k5rtfgPbr3QhTIsC5kor3PNiESmP73S+5ggqICtLa
DDZ6w7FwVOz2wJqbWg6OgQaW9Q6ghZrOkYSe4vwffvxSWPx/F/10ax+4jVVcB5/u
jRT7UXJDgn7ziiBpxRo95Sq5KmSl++mWa+8wVtrVvFCu5CAtLi3kz/ngT0WZK+EK
0euBrA==
-----END CERTIFICATE-----
Binary file added releases/EF2.0/1.0/custom_insightify-1.0.0.zip
Binary file not shown.
32 changes: 0 additions & 32 deletions src/EF2.0/secrets/ca.pem

This file was deleted.

34 changes: 34 additions & 0 deletions src/EF2.0/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# insightify extension

## Building and signing

* `dt-sdk build .`

## Running

* `dt-sdk run`

## Developing

1. Clone this repository
2. Install dependencies with `pip install .`
3. Increase the version under `extension/extension.yaml` after modifications
4. Run `dt-sdk build`

## Structure

### insightify folder

Contains the python code for the extension

### extension folder

Contains the yaml and activation definitions for the framework v2 extension

### setup.py

Contains dependency and other python metadata

### activation.json

Used during simulation only, contains the activation definition for the extension
25 changes: 25 additions & 0 deletions src/EF2.0/src/activation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{

"enabled": true,
"description": "RestartConfig",
"version": "1.0.0",
"pythonRemote": {
"endpoints": [
{
"name": "MyEndpoint",
"url": "https://xxx.live.dynatrace.com/api/v1/",
"token": "xxx.xxx.xxx",
"conftoken": "xxx.xxx.xxxx",
"confurl": "https://xxx.dynatrace.com/api/v2/",
"get_problem_data": "Yes",
"get_problem_data_mgmt_zone": "Yes",
"problem_to_incident_duration": "30",
"get_generate_report": "Last 7 days",
"management_zone_name": "All",
"ag_endpoint": "https://1.1.1.1:9999/e/ykd61701/api/v2/"
}
]
},

"scope": "ag_group-default"
}
20 changes: 8 additions & 12 deletions src/EF2.0/extension/activationSchema.json → ...EF2.0/src/extension/activationSchema.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"description": "Select timeperiod to generate problem data",
"nullable": false,
"default": "Last 30 days"
"default": "Last 7 days"
},
"management_zone_name": {
"displayName": "Management Zone Name",
Expand Down Expand Up @@ -166,24 +166,20 @@
"type": "enum",
"items": [
{
"value": "All Quarters",
"displayName": "All Quarters"
},
"value": "Last 1 day",
"displayName": "Last 1 day"
},
{
"value": "Last 90 days",
"displayName": "Last 90 days"
"value": "Last 7 days",
"displayName": "Last 7 days"
},
{
"value": "Last 60 days",
"displayName": "Last 60 days"
"value": "Last 14 days",
"displayName": "Last 14 days"
},
{
"value": "Last 30 days",
"displayName": "Last 30 days"
},
{
"value": "Last 1 day",
"displayName": "Last 1 day"
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions src/EF2.0/extension/extension.yaml → src/EF2.0/src/extension/extension.yaml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: custom:insightify
version: 0.0.112
minDynatraceVersion: 1.287.0
version: 1.0.0
minDynatraceVersion: "1.285"
author:
name: "Dynatrace"

Expand All @@ -12,4 +12,4 @@ python:

activation:
remote:
path: activationSchema.json
path: activationSchema.json
Empty file.
Loading

0 comments on commit 8235f00

Please sign in to comment.