Skip to content

Bestpractices

ベストプラクティス

セキュリティ

  1. Vaultを使用する

    # ✅ 推奨
    password:
      configuration_from:
        type: vault
        secret_key:
          path: 'secret/mysql'
          key: 'password'
    
    # ❌ 非推奨
    password: 'plaintext_password'
    

  2. 最小権限の原則

  3. 監視専用ユーザーを作成
  4. 必要最小限の権限のみ付与

  5. SSL/TLS接続を使用

    1
    2
    3
    com.instana.plugin.mysql:
      sslTrustStore: '/path/to/truststore.jks'
      sslTrustStorePassword: 'truststore_password'
    

パフォーマンス

  1. 適切なポーリング間隔

    1
    2
    3
    4
    5
    6
    7
    # 重要なサービス
    com.instana.plugin.mysql:
      poll_rate: 10
    
    # 一般的なサービス
    com.instana.plugin.redis:
      poll_rate: 30
    

  2. フィルタリングを使用

    com.instana.plugin.kafka:
      topicsRegex: '^(prod-|important-).*'
    

運用

  1. タグ付けの一貫性

    1
    2
    3
    4
    5
    com.instana.plugin.host:
      tags:
        - 'env:production'
        - 'app:web-frontend'
        - 'team:platform'
    

  2. 設定ファイルの分割

    1
    2
    3
    configuration.yaml
    configuration-databases.yaml
    configuration-cloud.yaml