Skip to content

Commit d81d4ea

Browse files
ysfscreamKinplemelon
authored andcommitted
fix(monitoring): remove datadog
1 parent 6333f24 commit d81d4ea

File tree

4 files changed

+1
-39
lines changed

4 files changed

+1
-39
lines changed

src/assets/img/datadog.png

-3.28 KB
Binary file not shown.

src/common/docLinks.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ type DocKey =
2929
| 'learnConfig'
3030
| 'restAPI'
3131
| 'faq'
32-
| 'datadogIntegration'
3332

3433
export type DocMap = Record<DocKey, string>
3534

@@ -87,7 +86,6 @@ const createDocLinks = (lang: string): DocMap => {
8786
learnConfig: `https://docs.emqx.com/${lang}/emqx/${EMQX_VERSION}/configuration/configuration.html?${QUERY_FOR_HELP}`,
8887
restAPI: `https://docs.emqx.com/${lang}/emqx/${EMQX_VERSION}/admin/api.html?${QUERY_FOR_HELP}`,
8988
faq: `https://docs.emqx.com/${lang}/emqx/${EMQX_VERSION}/faq/faq.html?${QUERY_FOR_HELP}`,
90-
datadogIntegration: `https://docs.emqx.com/${lang}/enterprise/${EMQX_VERSION}/observability/datadog.html`,
9189
}
9290
}
9391

src/i18n/MonitoringIntegration.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,8 @@ For example, <code> {'{'} Authorization = "some-authz-tokens"{'}'}</code>`,
182182
zh: '日志级别',
183183
en: 'Logs Level',
184184
},
185-
dataDogTip: {
186-
zh: '无需配置额外参数,请参考{docUse}了解使用方法。更多详情请参阅 {docIntegration}。',
187-
en: 'No extra configuration is required, please refer to {docUse} for usage. See {docIntegration} for more details.',
188-
},
189185
thisDoc: {
190186
zh: '此文档',
191187
en: 'this doc',
192188
},
193-
datadogIntegration: {
194-
zh: 'Datadog - EMQX 集成',
195-
en: 'Datadog - EMQX Integration',
196-
},
197189
}

src/views/Config/Monitoring/MonitoringIntegration.vue

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -214,26 +214,8 @@
214214
</template>
215215
</el-row>
216216
</template>
217-
<!-- OpenTelemetry -->
218-
<el-form-item v-if="selectedPlatform === DATADOG">
219-
<i18n-t keypath="MonitoringIntegration.dataDogTip" tag="p" class="tip">
220-
<template #docUse>
221-
<a :href="docMap.documentation" target="_blank">{{ tl('thisDoc') }}</a>
222-
</template>
223-
<template #docIntegration>
224-
<a :href="docMap.datadogIntegration" target="_blank">
225-
{{ tl('datadogIntegration') }}
226-
</a>
227-
</template>
228-
</i18n-t>
229-
</el-form-item>
230217
<el-col class="btn-col" :span="24">
231-
<el-button
232-
type="primary"
233-
:loading="isSubmitting"
234-
:disabled="selectedPlatform === DATADOG"
235-
@click="submit"
236-
>
218+
<el-button type="primary" :loading="isSubmitting" @click="submit">
237219
{{ $t('Base.saveChanges') }}
238220
</el-button>
239221
<el-button v-if="selectedPlatform === 'Prometheus'" @click="showPromSetup = true">
@@ -251,7 +233,6 @@
251233
import { getOpenTelemetry, getPrometheus, setOpenTelemetry, setPrometheus } from '@/api/common'
252234
import opentelemetryImg from '@/assets/img/opentelemetry.png'
253235
import promImg from '@/assets/img/prom.png'
254-
import dataDogImg from '@/assets/img/datadog.png'
255236
import { checkNOmitFromObj } from '@/common/tools'
256237
import FormItemLabel from '@/components/FormItemLabel.vue'
257238
import InfoTooltip from '@/components/InfoTooltip.vue'
@@ -268,18 +249,14 @@ import { useStore } from 'vuex'
268249
import HelpDrawer from './components/HelpDrawer.vue'
269250
import useSSL from '@/hooks/useSSL'
270251
import CommonTLSConfig from '@/components/TLSConfig/CommonTLSConfig.vue'
271-
import useDocLink from '@/hooks/useDocLink'
272252
273253
const PROMETHEUS = 'Prometheus'
274254
const OPENTELEMETRY = 'OpenTelemetry'
275-
const DATADOG = 'Datadog'
276255
277256
const { tl, t } = useI18nTl('MonitoringIntegration')
278257
const store = useStore()
279258
const { createSSLForm } = useSSL()
280259
281-
const { docMap } = useDocLink()
282-
283260
const platformOpts = [
284261
{
285262
label: PROMETHEUS,
@@ -291,11 +268,6 @@ const platformOpts = [
291268
value: OPENTELEMETRY,
292269
img: opentelemetryImg,
293270
},
294-
{
295-
label: DATADOG,
296-
value: DATADOG,
297-
img: dataDogImg,
298-
},
299271
]
300272
301273
const selectedPlatform = ref(platformOpts[0].value)

0 commit comments

Comments
 (0)