Skip to content

Commit f5dc07c

Browse files
Merge pull request #60 from lensesio/feat/converters
set values for editorTag
2 parents 148542c + 7048563 commit f5dc07c

File tree

2 files changed

+162
-72
lines changed

2 files changed

+162
-72
lines changed

agent/provisioning.schema-6.1.json

Lines changed: 158 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,50 @@
66
"editorTag": {
77
"type": "string",
88
"title": "Editor Tag",
9-
"description": "Editor tag for Lenses UX."
9+
"description": "Editor tag for Lenses UX.",
10+
"enum": [
11+
"Lenses HQ",
12+
"Lenses HQ TLS",
13+
"Aiven",
14+
"AWS MSK, SSL/TLS",
15+
"AWS MSK, mutal SSL/TLS",
16+
"AWS MSK, IAM",
17+
"Azure Eventhubs",
18+
"Confluent Cloud, SASL_SSL, PLAIN",
19+
"IBM Event Streams",
20+
"Redpanda",
21+
"PLAINTEXT",
22+
"SASL_PLAINTEXT, PLAIN",
23+
"SASL_PLAINTEXT, SCRAM-SHA-256",
24+
"SASL_PLAINTEXT, SCRAM-SHA-512",
25+
"SASL_SSL, PLAIN",
26+
"SASL_SSL, SCRAM-SHA-256",
27+
"SASL_SSL, SCRAM-SHA-512",
28+
"SSL/TLS",
29+
"Mutual SSL/TLS",
30+
"Zookeeper",
31+
"No Auth",
32+
"HTTP Basic Auth",
33+
"HTTP Basic Auth, SSL/TLS",
34+
"HTTP Basic Auth, Mutual SSL/TLS",
35+
"Confluent No Auth",
36+
"Confluent Basic Auth",
37+
"Confluent Basic Auth, SSL/TLS",
38+
"Confluent Basic Auth, Mutual SSL/TLS",
39+
"Aiven (Karpace)",
40+
"AWS Glue (Access Keys)",
41+
"AWS Glue (Credentials chain)",
42+
"AWS Glue (Assume Role)",
43+
"IBM Event Streams Registry",
44+
"ApiCurio",
45+
"AWS Connection for Glue & CloudWatch",
46+
"Webhook",
47+
"DataDog",
48+
"PagerDuty",
49+
"Slack",
50+
"Splunk",
51+
"Alert Manager"
52+
]
1053
},
1154
"version": {
1255
"type": "integer",
@@ -863,6 +906,107 @@
863906
},
864907
"title": "LensesHQ Max Jitter Window Milliseconds",
865908
"description": "The maximum duration of jitter window in milliseconds for retries in communication with the LensesHQ server."
909+
},
910+
"editorTagLensesHq": {
911+
"type": "string",
912+
"title": "Editor Tag",
913+
"description": "Editor tag for Lenses UX (Lenses HQ connection).",
914+
"enum": ["Lenses HQ", "Lenses HQ TLS"]
915+
},
916+
"editorTagKafka": {
917+
"type": "string",
918+
"title": "Editor Tag",
919+
"description": "Editor tag for Lenses UX (Kafka connection).",
920+
"enum": [
921+
"Aiven",
922+
"AWS MSK, SSL/TLS",
923+
"AWS MSK, mutal SSL/TLS",
924+
"AWS MSK, IAM",
925+
"Azure Eventhubs",
926+
"Confluent Cloud, SASL_SSL, PLAIN",
927+
"IBM Event Streams",
928+
"Redpanda",
929+
"PLAINTEXT",
930+
"SASL_PLAINTEXT, PLAIN",
931+
"SASL_PLAINTEXT, SCRAM-SHA-256",
932+
"SASL_PLAINTEXT, SCRAM-SHA-512",
933+
"SASL_SSL, PLAIN",
934+
"SASL_SSL, SCRAM-SHA-256",
935+
"SASL_SSL, SCRAM-SHA-512",
936+
"SSL/TLS",
937+
"Mutual SSL/TLS"
938+
]
939+
},
940+
"editorTagZookeeper": {
941+
"type": "string",
942+
"title": "Editor Tag",
943+
"description": "Editor tag for Lenses UX (Zookeeper connection).",
944+
"enum": ["Zookeeper"]
945+
},
946+
"editorTagConnect": {
947+
"type": "string",
948+
"title": "Editor Tag",
949+
"description": "Editor tag for Lenses UX (Kafka Connect connection).",
950+
"enum": ["No Auth", "HTTP Basic Auth", "HTTP Basic Auth, SSL/TLS", "HTTP Basic Auth, Mutual SSL/TLS"]
951+
},
952+
"editorTagSchemaRegistry": {
953+
"type": "string",
954+
"title": "Editor Tag",
955+
"description": "Editor tag for Lenses UX (Schema Registry connection).",
956+
"enum": [
957+
"Confluent No Auth",
958+
"Confluent Basic Auth",
959+
"Confluent Basic Auth, SSL/TLS",
960+
"Confluent Basic Auth, Mutual SSL/TLS",
961+
"Aiven (Karpace)",
962+
"AWS Glue (Access Keys)",
963+
"AWS Glue (Credentials chain)",
964+
"AWS Glue (Assume Role)",
965+
"IBM Event Streams Registry",
966+
"ApiCurio"
967+
]
968+
},
969+
"editorTagAws": {
970+
"type": "string",
971+
"title": "Editor Tag",
972+
"description": "Editor tag for Lenses UX (AWS connection).",
973+
"enum": ["AWS Connection for Glue & CloudWatch"]
974+
},
975+
"editorTagWebhook": {
976+
"type": "string",
977+
"title": "Editor Tag",
978+
"description": "Editor tag for Lenses UX (Webhook connection).",
979+
"enum": ["Webhook"]
980+
},
981+
"editorTagDatadog": {
982+
"type": "string",
983+
"title": "Editor Tag",
984+
"description": "Editor tag for Lenses UX (DataDog connection).",
985+
"enum": ["DataDog"]
986+
},
987+
"editorTagPagerduty": {
988+
"type": "string",
989+
"title": "Editor Tag",
990+
"description": "Editor tag for Lenses UX (PagerDuty connection).",
991+
"enum": ["PagerDuty"]
992+
},
993+
"editorTagSlack": {
994+
"type": "string",
995+
"title": "Editor Tag",
996+
"description": "Editor tag for Lenses UX (Slack connection).",
997+
"enum": ["Slack"]
998+
},
999+
"editorTagSplunk": {
1000+
"type": "string",
1001+
"title": "Editor Tag",
1002+
"description": "Editor tag for Lenses UX (Splunk connection).",
1003+
"enum": ["Splunk"]
1004+
},
1005+
"editorTagAlertmanager": {
1006+
"type": "string",
1007+
"title": "Editor Tag",
1008+
"description": "Editor tag for Lenses UX (Alert Manager connection).",
1009+
"enum": ["Alert Manager"]
8661010
}
8671011
},
8681012
"properties": {
@@ -879,7 +1023,7 @@
8791023
"enum": ["lenses-hq"],
8801024
"default": "lenses-hq"
8811025
},
882-
"editorTag": { "$ref": "#/definitions/editorTag" },
1026+
"editorTag": { "$ref": "#/definitions/editorTagLensesHq" },
8831027
"version": { "$ref": "#/definitions/version" },
8841028
"tags": { "$ref": "#/definitions/tags" },
8851029
"configuration": {
@@ -929,7 +1073,7 @@
9291073
"enum": ["kafka"],
9301074
"default": "kafka"
9311075
},
932-
"editorTag": { "$ref": "#/definitions/editorTag" },
1076+
"editorTag": { "$ref": "#/definitions/editorTagKafka" },
9331077
"version": { "$ref": "#/definitions/version" },
9341078
"tags": { "$ref": "#/definitions/tags" },
9351079
"configuration": {
@@ -1177,7 +1321,7 @@
11771321
"enum": ["zookeeper"],
11781322
"default": "zookeeper"
11791323
},
1180-
"editorTag": { "$ref": "#/definitions/editorTag" },
1324+
"editorTag": { "$ref": "#/definitions/editorTagZookeeper" },
11811325
"version": { "$ref": "#/definitions/version" },
11821326
"tags": { "$ref": "#/definitions/tags" },
11831327
"configuration": {
@@ -1235,7 +1379,7 @@
12351379
"enum": ["schema-registry"],
12361380
"default": "schema-registry"
12371381
},
1238-
"editorTag": { "$ref": "#/definitions/editorTag" },
1382+
"editorTag": { "$ref": "#/definitions/editorTagSchemaRegistry" },
12391383
"version": { "$ref": "#/definitions/version" },
12401384
"tags": { "$ref": "#/definitions/tags" },
12411385
"configuration": {
@@ -1393,7 +1537,7 @@
13931537
"enum": ["schema-registry"],
13941538
"default": "schema-registry"
13951539
},
1396-
"editorTag": { "$ref": "#/definitions/editorTag" },
1540+
"editorTag": { "$ref": "#/definitions/editorTagSchemaRegistry" },
13971541
"version": { "$ref": "#/definitions/version" },
13981542
"tags": { "$ref": "#/definitions/tags" },
13991543
"configuration": {
@@ -1438,7 +1582,7 @@
14381582
"pattern": "^[a-zA-Z0-9-]+$",
14391583
"default": "connect"
14401584
},
1441-
"editorTag": { "$ref": "#/definitions/editorTag" },
1585+
"editorTag": { "$ref": "#/definitions/editorTagConnect" },
14421586
"version": { "$ref": "#/definitions/version" },
14431587
"tags": { "$ref": "#/definitions/tags" },
14441588
"configuration": {
@@ -1569,7 +1713,7 @@
15691713
"pattern": "^[a-zA-Z0-9-]+$",
15701714
"default": "aws"
15711715
},
1572-
"editorTag": { "$ref": "#/definitions/editorTag" },
1716+
"editorTag": { "$ref": "#/definitions/editorTagAws" },
15731717
"version": { "$ref": "#/definitions/version" },
15741718
"tags": { "$ref": "#/definitions/tags" },
15751719
"configuration": {
@@ -1605,7 +1749,7 @@
16051749
"pattern": "^[a-zA-Z0-9-]+$",
16061750
"default": "webhook"
16071751
},
1608-
"editorTag": { "$ref": "#/definitions/editorTag" },
1752+
"editorTag": { "$ref": "#/definitions/editorTagWebhook" },
16091753
"version": { "$ref": "#/definitions/version" },
16101754
"tags": { "$ref": "#/definitions/tags" },
16111755
"configuration": {
@@ -1636,7 +1780,7 @@
16361780
"pattern": "^[a-zA-Z0-9-]+$",
16371781
"default": "datadog"
16381782
},
1639-
"editorTag": { "$ref": "#/definitions/editorTag" },
1783+
"editorTag": { "$ref": "#/definitions/editorTagDatadog" },
16401784
"version": { "$ref": "#/definitions/version" },
16411785
"tags": { "$ref": "#/definitions/tags" },
16421786
"configuration": {
@@ -1665,7 +1809,7 @@
16651809
"pattern": "^[a-zA-Z0-9-]+$",
16661810
"default": "pagerduty"
16671811
},
1668-
"editorTag": { "$ref": "#/definitions/editorTag" },
1812+
"editorTag": { "$ref": "#/definitions/editorTagPagerduty" },
16691813
"version": { "$ref": "#/definitions/version" },
16701814
"tags": { "$ref": "#/definitions/tags" },
16711815
"configuration": {
@@ -1692,7 +1836,7 @@
16921836
"pattern": "^[a-zA-Z0-9-]+$",
16931837
"default": "slack"
16941838
},
1695-
"editorTag": { "$ref": "#/definitions/editorTag" },
1839+
"editorTag": { "$ref": "#/definitions/editorTagSlack" },
16961840
"version": { "$ref": "#/definitions/version" },
16971841
"tags": { "$ref": "#/definitions/tags" },
16981842
"configuration": {
@@ -1720,7 +1864,7 @@
17201864
"pattern": "^[a-zA-Z0-9-]+$",
17211865
"default": "splunk"
17221866
},
1723-
"editorTag": { "$ref": "#/definitions/editorTag" },
1867+
"editorTag": { "$ref": "#/definitions/editorTagSplunk" },
17241868
"version": { "$ref": "#/definitions/version" },
17251869
"tags": { "$ref": "#/definitions/tags" },
17261870
"configuration": {
@@ -1751,7 +1895,7 @@
17511895
"pattern": "^[a-zA-Z0-9-]+$",
17521896
"default": "my-alertmanager-connection"
17531897
},
1754-
"editorTag": { "$ref": "#/definitions/editorTag" },
1898+
"editorTag": { "$ref": "#/definitions/editorTagAlertmanager" },
17551899
"version": { "$ref": "#/definitions/version" },
17561900
"tags": { "$ref": "#/definitions/tags" },
17571901
"configuration": {

example.provisioning.yaml

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,14 @@
1-
# yaml-language-server: $schema=./agent/provisioning.schema.json
1+
# yaml-language-server: #$schema=./agent/provisioning.schema-6.1.json
22

3-
# Lenses Agent Provisioning Configuration
4-
# This file uses the local JSON schema for validation and autocompletion
5-
6-
# Example configuration structure - uncomment and modify as needed:
7-
8-
lensesHq:
9-
- name: "lenses-hq"
10-
version: 1
11-
tags:
12-
- "hq"
13-
configuration:
14-
server:
15-
value: "<YOUR LENSES HQ SERVER URL>"
16-
port:
17-
value: 10000
18-
agentKey:
19-
value: "<LENSES_HQ_AGENT_KEY>"
203

214
kafka:
22-
- name: "kafka"
5+
- name: kafka
236
version: 1
24-
tags: []
7+
editorTag:
258
configuration:
269
kafkaBootstrapServers:
2710
value:
28-
- "PLAINTEXT://demo-kafka:9092"
29-
protocol:
30-
value: "PLAINTEXT"
31-
# Uncomment below to enable JMX metrics:
32-
# metricsPort:
33-
# value: 9581
34-
# metricsType:
35-
# value: "JMX"
36-
# metricsSsl:
37-
# value: false
38-
# metricsUsername:
39-
# value: "jmxuser"
40-
# metricsPassword:
41-
# value: "jmxpass"
11+
-
4212

43-
zookeeper:
44-
- name: "zookeeper"
45-
version: 1
46-
tags: []
47-
configuration:
48-
zookeeperUrls:
49-
value:
50-
- "localhost:2181"
5113

52-
connect:
53-
- name: "connect"
54-
version: 1
55-
tags: []
56-
configuration:
57-
workers:
58-
value:
59-
- "http://localhost:8083"
6014

61-
confluentSchemaRegistry:
62-
- name: "schema-registry"
63-
version: 1
64-
tags: []
65-
configuration:
66-
schemaRegistryUrls:
67-
value:
68-
- "http://localhost:8081"

0 commit comments

Comments
 (0)