Skip to content

Instantly share code, notes, and snippets.

@fudongyingluck
Created March 18, 2026 09:01
Show Gist options
  • Select an option

  • Save fudongyingluck/a6de6636a8fcc9ae161f08d1ebd1de96 to your computer and use it in GitHub Desktop.

Select an option

Save fudongyingluck/a6de6636a8fcc9ae161f08d1ebd1de96 to your computer and use it in GitHub Desktop.
grafana 源配置
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
uid: prometheus
url: http://prometheus:9090
isDefault: true
editable: true
jsonData:
timeInterval: 15s
- name: OpenSearch-Logs
type: grafana-opensearch-datasource
uid: opensearch-logs
url: https://opensearch:9200
editable: true
basicAuth: true
basicAuthUser: admin
secureJsonData:
basicAuthPassword: "My_password_123!@#"
jsonData:
database: logs-otel-v1-*
timeField: "@timestamp"
version: "3.0.0"
flavor: opensearch
tlsSkipVerify: true
logMessageField: body
logLevelField: severityText
- name: OpenSearch-Traces
type: grafana-opensearch-datasource
uid: opensearch-traces
url: https://opensearch:9200
editable: true
basicAuth: true
basicAuthUser: admin
secureJsonData:
basicAuthPassword: "My_password_123!@#"
jsonData:
database: otel-v1-apm-span-*
timeField: startTime
version: "3.0.0"
flavor: opensearch
tlsSkipVerify: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment